Title: [170923] trunk/Source/WebKit2
Revision
170923
Author
[email protected]
Date
2014-07-09 12:10:21 -0700 (Wed, 09 Jul 2014)

Log Message

RemoteLayerBackingStore::ensureBackingStore should ensure that the entire backing store gets redrawn
https://bugs.webkit.org/show_bug.cgi?id=134772

Reviewed by Tim Horton.

* Shared/mac/RemoteLayerBackingStore.h:
(WebKit::RemoteLayerBackingStore::Buffer::operator bool):
* Shared/mac/RemoteLayerBackingStore.mm:
(WebKit::RemoteLayerBackingStore::ensureBackingStore):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (170922 => 170923)


--- trunk/Source/WebKit2/ChangeLog	2014-07-09 18:05:06 UTC (rev 170922)
+++ trunk/Source/WebKit2/ChangeLog	2014-07-09 19:10:21 UTC (rev 170923)
@@ -1,3 +1,15 @@
+2014-07-09  Anders Carlsson  <[email protected]>
+
+        RemoteLayerBackingStore::ensureBackingStore should ensure that the entire backing store gets redrawn
+        https://bugs.webkit.org/show_bug.cgi?id=134772
+
+        Reviewed by Tim Horton.
+
+        * Shared/mac/RemoteLayerBackingStore.h:
+        (WebKit::RemoteLayerBackingStore::Buffer::operator bool):
+        * Shared/mac/RemoteLayerBackingStore.mm:
+        (WebKit::RemoteLayerBackingStore::ensureBackingStore):
+
 2014-07-09  KwangHyuk Kim  <[email protected]>
 
         [EFL] Fix crash caused by invalid cursor image.

Modified: trunk/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.h (170922 => 170923)


--- trunk/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.h	2014-07-09 18:05:06 UTC (rev 170922)
+++ trunk/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.h	2014-07-09 19:10:21 UTC (rev 170923)
@@ -112,6 +112,18 @@
         bool isVolatile = false;
 #endif
 
+        explicit operator bool() const
+        {
+#if USE(IOSURFACE)
+            if (surface)
+                return true;
+#endif
+            if (bitmap)
+                return true;
+
+            return false;
+        }
+
         void discard();
     };
 

Modified: trunk/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm (170922 => 170923)


--- trunk/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm	2014-07-09 18:05:06 UTC (rev 170922)
+++ trunk/Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm	2014-07-09 19:10:21 UTC (rev 170923)
@@ -86,6 +86,12 @@
     m_acceleratesDrawing = acceleratesDrawing;
     m_isOpaque = isOpaque;
 
+    if (m_frontBuffer) {
+        // If we have a valid backing store, we need to ensure that it gets completely
+        // repainted the next time display() is called.
+        setNeedsDisplay();
+    }
+
     clearBackingStore();
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to