[CoordGraphics] Expose Nicosia layer as the underlying CoordinatedGraphicsLayer platf...
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Aug 2019 06:12:27 +0000 (06:12 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Aug 2019 06:12:27 +0000 (06:12 +0000)
https://bugs.webkit.org/show_bug.cgi?id=201131

Reviewed by Carlos Garcia Campos.

Add the CoordinatedGraphicsLayer::platformLayer() override, returning
the Nicosia::CompositionLayer object as the underlying platform layer.
This will come in handy for asynchronous scrolling.

* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::platformLayer const):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249242 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h

index ae2fdc5..ee99db5 100644 (file)
@@ -1,5 +1,20 @@
 2019-08-28  Zan Dobersek  <zdobersek@igalia.com>
 
+        [CoordGraphics] Expose Nicosia layer as the underlying CoordinatedGraphicsLayer platform layer
+        https://bugs.webkit.org/show_bug.cgi?id=201131
+
+        Reviewed by Carlos Garcia Campos.
+
+        Add the CoordinatedGraphicsLayer::platformLayer() override, returning
+        the Nicosia::CompositionLayer object as the underlying platform layer.
+        This will come in handy for asynchronous scrolling.
+
+        * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
+        (WebCore::CoordinatedGraphicsLayer::platformLayer const):
+        * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
+
+2019-08-28  Zan Dobersek  <zdobersek@igalia.com>
+
         [Nicosia] Polish ScrollingCoordinator implementation
         https://bugs.webkit.org/show_bug.cgi?id=201130
 
index 1718133..633773a 100644 (file)
@@ -1302,6 +1302,13 @@ bool CoordinatedGraphicsLayer::usesContentsLayer() const
     return m_nicosia.contentLayer || m_compositedImage;
 }
 
+#if USE(NICOSIA)
+PlatformLayer* CoordinatedGraphicsLayer::platformLayer() const
+{
+    return m_nicosia.layer.get();
+}
+#endif
+
 } // namespace WebCore
 
 SPECIALIZE_TYPE_TRAITS_ANIMATEDBACKINGSTORECLIENT(WebCore::CoordinatedAnimatedBackingStoreClient, type() == Nicosia::AnimatedBackingStoreClient::Type::Coordinated)
index f2d7cf3..9af5a4e 100644 (file)
@@ -109,6 +109,10 @@ public:
     void resumeAnimations() override;
     bool usesContentsLayer() const override;
 
+#if USE(NICOSIA)
+    PlatformLayer* platformLayer() const override;
+#endif
+
     void syncPendingStateChangesIncludingSubLayers();
     void updateContentBuffersIncludingSubLayers();