Changeset 106951 in webkit
- Timestamp:
- Feb 7, 2012 8:43:23 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r106947 r106951 1 2012-02-07 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r106935. 4 http://trac.webkit.org/changeset/106935 5 https://bugs.webkit.org/show_bug.cgi?id=77994 6 7 "Crashes runMultiThread webkit_unit_test" (Requested by tonyg- 8 cr on #webkit). 9 10 * platform/graphics/chromium/cc/CCLayerTreeHost.cpp: 11 (WebCore::CCLayerTreeHost::setNeedsRedraw): 12 * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp: 13 (WebCore::CCSingleThreadProxy::setNeedsRedraw): 14 * platform/graphics/chromium/cc/CCThreadProxy.cpp: 15 (WebCore::CCThreadProxy::setNeedsRedraw): 16 * platform/graphics/chromium/cc/CCThreadProxy.h: 17 (CCThreadProxy): 18 1 19 2012-02-07 Sheriff Bot <webkit.review.bot@gmail.com> 2 20 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp
r106935 r106951 252 252 void CCLayerTreeHost::setNeedsRedraw() 253 253 { 254 m_proxy->setNeedsRedraw(); 255 if (!CCThreadProxy::implThread()) 254 if (CCThreadProxy::implThread()) 255 m_proxy->setNeedsRedraw(); 256 else 256 257 m_client->scheduleComposite(); 257 258 } -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCSingleThreadProxy.cpp
r106935 r106951 30 30 #include "LayerRendererChromium.h" 31 31 #include "TraceEvent.h" 32 #include "cc/CCDamageTracker.h"33 32 #include "cc/CCLayerTreeHost.h" 34 33 #include "cc/CCTextureUpdater.h" … … 196 195 void CCSingleThreadProxy::setNeedsRedraw() 197 196 { 198 CCRenderSurface* renderSurface = m_layerTreeHostImpl->rootLayer()->renderSurface();199 if (renderSurface)200 renderSurface->damageTracker()->forceFullDamageNextUpdate();201 202 197 // FIXME: Once we move render_widget scheduling into this class, we can 203 198 // treat redraw requests more efficiently than commitAndRedraw requests. -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp
r106935 r106951 29 29 #include "GraphicsContext3D.h" 30 30 #include "TraceEvent.h" 31 #include "cc/CCDamageTracker.h"32 31 #include "cc/CCDelayBasedTimeSource.h" 33 32 #include "cc/CCFrameRateController.h" … … 250 249 ASSERT(isMainThread()); 251 250 TRACE_EVENT("CCThreadProxy::setNeedsRedraw", this, 0); 252 CCProxy::implThread()->postTask(createCCThreadTask(this, &CCThreadProxy::resetDamageTrackerOnImplThread));253 251 CCProxy::implThread()->postTask(createCCThreadTask(this, &CCThreadProxy::setNeedsRedrawOnImplThread)); 254 252 } … … 275 273 m_schedulerOnImplThread->setNeedsRedraw(); 276 274 completion->signal(); 277 }278 279 void CCThreadProxy::resetDamageTrackerOnImplThread()280 {281 ASSERT(isImplThread());282 CCRenderSurface* renderSurface = m_layerTreeHostImpl->rootLayer()->renderSurface();283 if (renderSurface)284 renderSurface->damageTracker()->forceFullDamageNextUpdate();285 275 } 286 276 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.h
r106935 r106951 104 104 void setVisibleOnImplThread(CCCompletionEvent*, bool visible); 105 105 void layerTreeHostClosedOnImplThread(CCCompletionEvent*); 106 void resetDamageTrackerOnImplThread();107 106 108 107 // Accessed on main thread only. -
trunk/Source/WebKit/chromium/ChangeLog
r106935 r106951 1 2012-02-07 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r106935. 4 http://trac.webkit.org/changeset/106935 5 https://bugs.webkit.org/show_bug.cgi?id=77994 6 7 "Crashes runMultiThread webkit_unit_test" (Requested by tonyg- 8 cr on #webkit). 9 10 * public/WebWidget.h: 11 (WebWidget): 12 * src/WebViewImpl.cpp: 13 * src/WebViewImpl.h: 14 (WebViewImpl): 15 1 16 2012-02-07 Jonathan Backer <backer@chromium.org> 2 17 -
trunk/Source/WebKit/chromium/public/WebWidget.h
r106935 r106951 108 108 virtual void composite(bool finish) = 0; 109 109 110 // Temporary method for the embedder to notify the WebWidget that the widget111 // has taken damage, e.g. due to a window expose. This method will be112 // removed when the WebWidget inversion patch lands --- http://crbug.com/112837113 virtual void setNeedsRedraw() { }114 115 110 // Called to inform the WebWidget of a change in theme. 116 111 // Implementors that cache rendered copies of widgets need to re-render -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r106935 r106951 1272 1272 } 1273 1273 1274 void WebViewImpl::setNeedsRedraw()1275 {1276 #if USE(ACCELERATED_COMPOSITING)1277 if (m_layerTreeHost && isAcceleratedCompositingActive())1278 m_layerTreeHost->setNeedsRedraw();1279 #endif1280 }1281 1282 1274 void WebViewImpl::loseCompositorContext(int numTimes) 1283 1275 { -
trunk/Source/WebKit/chromium/src/WebViewImpl.h
r106935 r106951 114 114 virtual void themeChanged(); 115 115 virtual void composite(bool finish); 116 virtual void setNeedsRedraw();117 116 virtual bool handleInputEvent(const WebInputEvent&); 118 117 virtual void mouseCaptureLost();
Note: See TracChangeset
for help on using the changeset viewer.