Title: [135490] trunk/Source/WebKit2
Revision
135490
Author
[email protected]
Date
2012-11-22 00:36:03 -0800 (Thu, 22 Nov 2012)

Log Message

Coordinated Graphics: Remove an invisible TiledBackingStore of CoordinatedGraphicsLayer.
https://bugs.webkit.org/show_bug.cgi?id=102894

Patch by Huang Dongsung <[email protected]> on 2012-11-22
Reviewed by Kenneth Rohde Christiansen.

CoordinatedGraphicsLayer does not need to have a backing store
if (!drawsContent() || !contentsAreVisible() || m_size.isEmpty()).

* WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::updateContentBuffers):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (135489 => 135490)


--- trunk/Source/WebKit2/ChangeLog	2012-11-22 08:30:17 UTC (rev 135489)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-22 08:36:03 UTC (rev 135490)
@@ -1,5 +1,18 @@
 2012-11-22  Huang Dongsung  <[email protected]>
 
+        Coordinated Graphics: Remove an invisible TiledBackingStore of CoordinatedGraphicsLayer.
+        https://bugs.webkit.org/show_bug.cgi?id=102894
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        CoordinatedGraphicsLayer does not need to have a backing store
+        if (!drawsContent() || !contentsAreVisible() || m_size.isEmpty()).
+
+        * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
+        (WebCore::CoordinatedGraphicsLayer::updateContentBuffers):
+
+2012-11-22  Huang Dongsung  <[email protected]>
+
         Coordinated Graphics: refactor LayerTreeRenderer.
         https://bugs.webkit.org/show_bug.cgi?id=103004
 

Modified: trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp (135489 => 135490)


--- trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp	2012-11-22 08:30:17 UTC (rev 135489)
+++ trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp	2012-11-22 08:36:03 UTC (rev 135490)
@@ -748,7 +748,7 @@
 
 void CoordinatedGraphicsLayer::updateContentBuffers()
 {
-    if (!drawsContent()) {
+    if (!drawsContent() || !contentsAreVisible() || m_size.isEmpty()) {
         m_mainBackingStore.clear();
         m_previousBackingStore.clear();
         return;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to