Changeset 116316 in webkit


Ignore:
Timestamp:
May 7, 2012 10:25:27 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Michal Mocny <mmocny@google.com> 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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r116313 r116316  
     12012-05-07  Michal Mocny  <mmocny@google.com>
     2
     3        [chromium] setContentsMemoryAllocationLimitBytes needs to setNeedsCommit.
     4        https://bugs.webkit.org/show_bug.cgi?id=85801
     5
     6        Reviewed by Adrienne Walker.
     7
     8        CCLayerTreeHost::setContentsMemoryAllocationLimitBytes needs to call setNeedsCommit after adjusting memory
     9        limits, so that we push a new frame.  In particular, when returning from non visibile state, we adjust
     10        memory allocation from 0 to non 0, and we need to push a non blank frame.
     11
     12        * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
     13        (WebCore::CCLayerTreeHost::setVisible):
     14        (WebCore::CCLayerTreeHost::setContentsMemoryAllocationLimitBytes):
     15
    1162012-05-07  Christophe Dumez  <christophe.dumez@intel.com>
    217
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp

    r116142 r116316  
    421421
    422422    m_contentsTextureManager->setMemoryAllocationLimitBytes(bytes);
     423    setNeedsCommit();
    423424}
    424425
Note: See TracChangeset for help on using the changeset viewer.