Changeset 111180 in webkit
- Timestamp:
- Mar 19, 2012 7:45:28 AM (12 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/WebPageCompositor.cpp
r111099 r111180 41 41 , m_context(GLES2Context::create(page)) 42 42 , m_layerRenderer(LayerRenderer::create(m_context.get())) 43 , m_generation(0)44 , m_compositedGeneration(-1)45 43 , m_backingStoreUsesOpenGL(false) 46 44 , m_animationTimer(this, &WebPageCompositorPrivate::animationTimerFired) … … 79 77 80 78 rootLayer->commitOnCompositingThread(); 81 ++m_generation;82 79 } 83 80 84 81 bool WebPageCompositorPrivate::drawLayers(const IntRect& dstRect, const FloatRect& contents) 85 82 { 86 // Save a draw if we already drew this generation, for example due to a concurrent scroll operation.87 if (m_compositedGeneration == m_generation && dstRect == m_compositedDstRect88 && contents == m_compositedContentsRect && !m_backingStoreUsesOpenGL)89 return false;90 91 83 m_layerRenderer->drawLayers(contents, m_layoutRectForCompositing, m_contentsSizeForCompositing, dstRect); 92 84 m_lastCompositingResults = m_layerRenderer->lastRenderingResults(); 93 85 94 m_compositedDstRect = dstRect;95 m_compositedContentsRect = contents;96 m_compositedGeneration = m_generation;97 98 86 if (m_lastCompositingResults.needsAnimationFrame) { 99 ++m_generation; // The animation update moves us along one generation.100 87 // Using a timeout of 0 actually won't start a timer, it will send a message. 101 88 m_animationTimer.start(1.0 / 60.0); -
trunk/Source/WebKit/blackberry/Api/WebPageCompositor_p.h
r111099 r111180 77 77 WebCore::IntSize m_contentsSizeForCompositing; 78 78 WebCore::LayerRenderingResults m_lastCompositingResults; 79 int m_generation;80 int m_compositedGeneration;81 WebCore::IntRect m_compositedDstRect;82 WebCore::FloatRect m_compositedContentsRect;83 79 bool m_backingStoreUsesOpenGL; 84 80 BlackBerry::Platform::Timer<WebPageCompositorPrivate> m_animationTimer; -
trunk/Source/WebKit/blackberry/ChangeLog
r111121 r111180 1 2012-03-19 Arvid Nilsson <anilsson@rim.com> 2 3 [BlackBerry] Remove obsolete optimization in WebPageCompositorPrivate 4 https://bugs.webkit.org/show_bug.cgi?id=81115 5 6 Reviewed by Benjamin Poulain. 7 8 The compositor tried to avoid rendering the same stuff twice, using a 9 mechanism that didn't work properly and has been redundant since we 10 introduced deferred blits. Remove this code. 11 12 Reviewed internally by Robin Cao. 13 14 * Api/WebPageCompositor.cpp: 15 (BlackBerry::WebKit::WebPageCompositorPrivate::WebPageCompositorPrivate): 16 (BlackBerry::WebKit::WebPageCompositorPrivate::commit): 17 (BlackBerry::WebKit::WebPageCompositorPrivate::drawLayers): 18 * Api/WebPageCompositor_p.h: 19 1 20 2012-03-17 Charles Wei <charles.wei@torchmobile.com.cn> 2 21
Note: See TracChangeset
for help on using the changeset viewer.