Changeset 112096 in webkit


Ignore:
Timestamp:
Mar 26, 2012 7:54:55 AM (12 years ago)
Author:
jocelyn.turcotte@nokia.com
Message:

[Qt] Make sure that purged directly composited images are re-created before a layer's sync.
https://bugs.webkit.org/show_bug.cgi?id=81771

Reviewed by Noam Rosenthal.

This fixes a regression in tst_qquickwebview introduced by r111567.

  • WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:

(WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):
(WebCore::WebGraphicsLayer::updateContentBuffers):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r112093 r112096  
     12012-03-26  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        [Qt] Make sure that purged directly composited images are re-created before a layer's sync.
     4        https://bugs.webkit.org/show_bug.cgi?id=81771
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        This fixes a regression in tst_qquickwebview introduced by r111567.
     9
     10        * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
     11        (WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):
     12        (WebCore::WebGraphicsLayer::updateContentBuffers):
     13
    1142012-03-26  Simon Hausmann  <simon.hausmann@nokia.com>
    215
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebGraphicsLayer.cpp

    r111567 r112096  
    431431void WebGraphicsLayer::syncCompositingStateForThisLayerOnly()
    432432{
     433    // The remote image might have been released by purgeBackingStores.
     434    if (m_image) {
     435        if (!m_layerInfo.imageBackingStoreID) {
     436            m_layerInfo.imageBackingStoreID = m_webGraphicsLayerClient->adoptImageBackingStore(m_image.get());
     437            m_layerInfo.imageIsUpdated = true;
     438        }
     439    }
    433440
    434441    if (m_modified) {
     
    575582void WebGraphicsLayer::updateContentBuffers()
    576583{
    577     // The remote image might have been released by purgeBackingStores.
    578     if (m_image) {
    579         if (!m_layerInfo.imageBackingStoreID) {
    580             m_layerInfo.imageBackingStoreID = m_webGraphicsLayerClient->adoptImageBackingStore(m_image.get());
    581             m_layerInfo.imageIsUpdated = true;
    582         }
    583     }
    584 
    585584    if (!drawsContent()) {
    586585        m_mainBackingStore.clear();
Note: See TracChangeset for help on using the changeset viewer.