Changeset 136341 in webkit
- Timestamp:
- Dec 2, 2012 4:49:09 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r136336 r136341 1 2012-12-02 Huang Dongsung <luxtella@company100.net> 2 3 Coordinated Graphics: Images disappear randomly 4 https://bugs.webkit.org/show_bug.cgi?id=103522 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Currently, we delete layers before synchronizing layer states of layers. It 9 causes flash. This patch deletes layers after the synchronization. 10 11 In addiation, this patch removes updateViewport() in 12 LayerTreeCoordinatorProxy::deleteCompositingLayer() because 13 LayerTreeCoordinatorProxy::didRenderFrame() is always called after 14 deleting layers. 15 16 * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp: 17 (WebKit::LayerTreeCoordinatorProxy::deleteCompositingLayer): 18 * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: 19 (WebKit::LayerTreeCoordinator::flushPendingLayerChanges): 20 1 21 2012-12-02 Brent Fulgham <bfulgham@webkit.org> 2 22 -
trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp
r135207 r136341 95 95 { 96 96 dispatchUpdate(bind(&LayerTreeRenderer::deleteLayer, m_renderer.get(), id)); 97 updateViewport();98 97 } 99 98 -
trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp
r135207 r136341 269 269 return false; 270 270 271 for (size_t i = 0; i < m_detachedLayers.size(); ++i)272 m_webPage->send(Messages::LayerTreeCoordinatorProxy::DeleteCompositingLayer(m_detachedLayers[i]));273 m_detachedLayers.clear();274 275 271 bool didSync = m_webPage->corePage()->mainFrame()->view()->flushCompositingStateIncludingSubframes(); 276 272 m_nonCompositedContentLayer->flushCompositingStateForThisLayerOnly(); … … 286 282 m_shouldSyncRootLayer = false; 287 283 } 284 285 for (size_t i = 0; i < m_detachedLayers.size(); ++i) 286 m_webPage->send(Messages::LayerTreeCoordinatorProxy::DeleteCompositingLayer(m_detachedLayers[i])); 287 m_detachedLayers.clear(); 288 288 289 289 if (m_shouldSyncFrame) {
Note: See TracChangeset
for help on using the changeset viewer.