Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2119)

Unified Diff: cc/delegating_renderer.cc

Issue 12381042: cc: Only call didCompleteSwapBuffers() when in threaded mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/delegating_renderer.cc
diff --git a/cc/delegating_renderer.cc b/cc/delegating_renderer.cc
index d1c3429fe801d90d34ff222a9a8de8bd3fba8997..da472cfa582c4dd1441482b5dc8580f1f68505ef 100644
--- a/cc/delegating_renderer.cc
+++ b/cc/delegating_renderer.cc
@@ -177,7 +177,8 @@ void DelegatingRenderer::getFramebufferPixels(void *pixels,
void DelegatingRenderer::receiveCompositorFrameAck(
const CompositorFrameAck& ack) {
resource_provider_->receiveFromParent(ack.resources);
- m_client->onSwapBuffersComplete();
+ if (m_client->hasImplThread())
+ m_client->onSwapBuffersComplete();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698