Changeset 109521 in webkit
- Timestamp:
- Mar 2, 2012 12:11:42 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r109518 r109521 1 2012-03-02 John Bauman <jbauman@chromium.org> 2 3 [chromium] Send didCommitAndDrawFrame after swap 4 https://bugs.webkit.org/show_bug.cgi?id=80052 5 6 Reviewed by James Robinson. 7 8 Sending didCommitAndDrawFrame before the swap was causing plugins to 9 redraw themselves between compositing and the swap, which reduces 10 opportunities for optimization. 11 12 * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp: 13 (WebCore::CCSingleThreadProxy::compositeAndReadback): 14 (WebCore::CCSingleThreadProxy::compositeImmediately): 15 (WebCore::CCSingleThreadProxy::doComposite): 16 (WebCore): 17 (WebCore::CCSingleThreadProxy::didSwapFrame): 18 * platform/graphics/chromium/cc/CCSingleThreadProxy.h: 19 (CCSingleThreadProxy): 20 1 21 2012-03-02 Raymond Toy <rtoy@google.com> 2 22 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCSingleThreadProxy.cpp
r109411 r109521 81 81 m_layerTreeHostImpl->readback(pixels, rect); 82 82 83 didSwapFrame(); 84 83 85 if (m_layerTreeHostImpl->isContextLost()) 84 86 return false; … … 267 269 return; 268 270 269 if (doComposite()) 271 if (doComposite()) { 270 272 m_layerTreeHostImpl->swapBuffers(); 273 didSwapFrame(); 274 } 271 275 } 272 276 … … 298 302 } 299 303 304 return true; 305 } 306 307 void CCSingleThreadProxy::didSwapFrame() 308 { 300 309 if (m_nextFrameIsNewlyCommittedFrame) { 301 310 m_nextFrameIsNewlyCommittedFrame = false; 302 311 m_layerTreeHost->didCommitAndDrawFrame(); 303 312 } 304 305 return true; 306 } 307 308 } 313 } 314 315 } -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCSingleThreadProxy.h
r109411 r109521 77 77 void doCommit(); 78 78 bool doComposite(); 79 void didSwapFrame(); 79 80 80 81 // Accessed on main thread only.
Note: See TracChangeset
for help on using the changeset viewer.