[Win] WebView is not painting in accelerated compositing mode.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Feb 2017 19:21:31 +0000 (19:21 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Feb 2017 19:21:31 +0000 (19:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=168654

Reviewed by Brent Fulgham.

Initializing the uncommitted layer change flags to CoverageRectChanged in GraphicsLayerCA,
stops WebView painting in accelerated mode.

Covered by existing tests.

* platform/graphics/ca/GraphicsLayerCA.h:

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h

index 92c2ad5..fee0ca8 100644 (file)
@@ -1,3 +1,17 @@
+2017-02-21  Per Arne Vollan  <pvollan@apple.com>
+
+        [Win] WebView is not painting in accelerated compositing mode.
+        https://bugs.webkit.org/show_bug.cgi?id=168654
+
+        Reviewed by Brent Fulgham.
+
+        Initializing the uncommitted layer change flags to CoverageRectChanged in GraphicsLayerCA,
+        stops WebView painting in accelerated mode.
+
+        Covered by existing tests.
+
+        * platform/graphics/ca/GraphicsLayerCA.h:
+
 2017-02-21  Jer Noble  <jer.noble@apple.com>
 
         Make logging in high-priority audio threads less expensive
index 07b6afa..b9c1a5b 100644 (file)
@@ -586,7 +586,13 @@ private:
 
     FloatSize m_pixelAlignmentOffset;
 
+#if PLATFORM(WIN)
+    // FIXME: when initializing m_uncommittedChanges to a non-zero value, nothing is painted on Windows, see https://bugs.webkit.org/show_bug.cgi?id=168666.
+    LayerChangeFlags m_uncommittedChanges { 0 };
+#else
     LayerChangeFlags m_uncommittedChanges { CoverageRectChanged };
+#endif
+
     bool m_isCommittingChanges { false };
 };