Title: [116316] trunk/Source/WebCore
Revision
116316
Author
[email protected]
Date
2012-05-07 10:25:27 -0700 (Mon, 07 May 2012)

Log Message

[chromium] setContentsMemoryAllocationLimitBytes needs to setNeedsCommit.
https://bugs.webkit.org/show_bug.cgi?id=85801

Patch by Michal Mocny <[email protected]> on 2012-05-07
Reviewed by Adrienne Walker.

CCLayerTreeHost::setContentsMemoryAllocationLimitBytes needs to call setNeedsCommit after adjusting memory
limits, so that we push a new frame.  In particular, when returning from non visibile state, we adjust
memory allocation from 0 to non 0, and we need to push a non blank frame.

* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::setVisible):
(WebCore::CCLayerTreeHost::setContentsMemoryAllocationLimitBytes):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (116315 => 116316)


--- trunk/Source/WebCore/ChangeLog	2012-05-07 17:21:55 UTC (rev 116315)
+++ trunk/Source/WebCore/ChangeLog	2012-05-07 17:25:27 UTC (rev 116316)
@@ -1,3 +1,18 @@
+2012-05-07  Michal Mocny  <[email protected]>
+
+        [chromium] setContentsMemoryAllocationLimitBytes needs to setNeedsCommit.
+        https://bugs.webkit.org/show_bug.cgi?id=85801
+
+        Reviewed by Adrienne Walker.
+
+        CCLayerTreeHost::setContentsMemoryAllocationLimitBytes needs to call setNeedsCommit after adjusting memory
+        limits, so that we push a new frame.  In particular, when returning from non visibile state, we adjust
+        memory allocation from 0 to non 0, and we need to push a non blank frame.
+
+        * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
+        (WebCore::CCLayerTreeHost::setVisible):
+        (WebCore::CCLayerTreeHost::setContentsMemoryAllocationLimitBytes):
+
 2012-05-07  Christophe Dumez  <[email protected]>
 
         [EFL] media/track/track-cue-rendering-snap-to-lines-not-set.html fails

Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp (116315 => 116316)


--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp	2012-05-07 17:21:55 UTC (rev 116315)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp	2012-05-07 17:25:27 UTC (rev 116316)
@@ -420,6 +420,7 @@
         return;
 
     m_contentsTextureManager->setMemoryAllocationLimitBytes(bytes);
+    setNeedsCommit();
 }
 
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to