[GTK][WPE] Compositing indicators are not working
authormagomez@igalia.com <magomez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Sep 2018 15:47:19 +0000 (15:47 +0000)
committermagomez@igalia.com <magomez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Sep 2018 15:47:19 +0000 (15:47 +0000)
https://bugs.webkit.org/show_bug.cgi?id=189915

Reviewed by Žan Doberšek.

Pass the debugBorder and repaintCount parameters to the TextureMapperLayer when required.

* Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
(WebKit::CoordinatedGraphicsScene::updateSceneState):

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

Source/WebKit/ChangeLog
Source/WebKit/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp

index 91440ba..00a7459 100644 (file)
@@ -1,3 +1,15 @@
+2018-09-24  Miguel Gomez  <magomez@igalia.com>
+
+        [GTK][WPE] Compositing indicators are not working
+        https://bugs.webkit.org/show_bug.cgi?id=189915
+
+        Reviewed by Žan Doberšek.
+
+        Pass the debugBorder and repaintCount parameters to the TextureMapperLayer when required.
+
+        * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
+        (WebKit::CoordinatedGraphicsScene::updateSceneState):
+
 2018-09-21  Dean Jackson  <dino@apple.com>
 
         Add PointerEvent, plus feature flag, plus Web Platform Tests
index b5aeade..1b2ed1b 100644 (file)
@@ -345,6 +345,12 @@ void CoordinatedGraphicsScene::updateSceneState()
                             layer.setPreserves3D(layerState.flags.preserves3D);
                         }
 
+                        if (layerState.delta.repaintCounterChanged)
+                            layer.setRepaintCounter(layerState.repaintCounter.visible, layerState.repaintCounter.count);
+
+                        if (layerState.delta.debugBorderChanged)
+                            layer.setDebugVisuals(layerState.debugBorder.visible, layerState.debugBorder.color, layerState.debugBorder.width);
+
                         if (layerState.backingStore) {
                             auto& impl = backingStoreImpl(*layerState.backingStore);
                             layersByBacking.backingStore.append(