Commit 85b6f2c7 authored by vangelis@chromium.org's avatar vangelis@chromium.org
Browse files

Remove call to FinishAllRendering when in force-compositing-mode.

https://bugs.webkit.org/show_bug.cgi?id=98111

It's not needed and makes the renderer synchronously wait for a glFinish
to happen in the gpu process.

Reviewed by James Robinson.

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
(WebKit):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c19324ed
2012-10-02 Vangelis Kokkevis <vangelis@chromium.org>
Remove call to FinishAllRendering when in force-compositing-mode.
https://bugs.webkit.org/show_bug.cgi?id=98111
It's not needed and makes the renderer synchronously wait for a glFinish
to happen in the gpu process.
Reviewed by James Robinson.
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
(WebKit):
2012-09-29 Ilya Tikhonovsky <loislo@chromium.org>
 
Web Inspector: NMI make String* instrumentation non intrusive
......
......@@ -3773,8 +3773,9 @@ void WebViewImpl::setIsAcceleratedCompositingActive(bool active)
if (!active) {
m_isAcceleratedCompositingActive = false;
// We need to finish all GL rendering before sending didDeactivateCompositor() to prevent
// flickering when compositing turns off.
if (m_layerTreeView)
// flickering when compositing turns off. This is only necessary if we're not in
// force-compositing-mode.
if (m_layerTreeView && !page()->settings()->forceCompositingMode())
m_layerTreeView->finishAllRendering();
m_client->didDeactivateCompositor();
} else if (m_layerTreeView) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment