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

Unified Diff: cc/CCSingleThreadProxy.cpp

Issue 10937007: cc: Only use upload throttling when performing full texture uploads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | cc/CCTextureUpdateController.h » ('j') | cc/CCTextureUpdateController.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCSingleThreadProxy.cpp
diff --git a/cc/CCSingleThreadProxy.cpp b/cc/CCSingleThreadProxy.cpp
index 0a52d64ba10f336e45e03085dc9fc46dd5f0e0ca..47f01ebfd1198673747470f676f887c184019b35 100644
--- a/cc/CCSingleThreadProxy.cpp
+++ b/cc/CCSingleThreadProxy.cpp
@@ -187,13 +187,7 @@ void CCSingleThreadProxy::doCommit(CCTextureUpdateQueue& queue)
m_layerTreeHost->beginCommitOnImplThread(m_layerTreeHostImpl.get());
- // CCTextureUpdateController::updateTextures is non-blocking and will
- // return without updating any textures if the uploader is busy. This
- // shouldn't be a problem here as the throttled uploader isn't used in
- // single thread mode. For correctness, loop until no more updates are
- // pending.
- while (queue.hasMoreUpdates())
- CCTextureUpdateController::updateTextures(m_layerTreeHostImpl->resourceProvider(), m_layerTreeHostImpl->renderer()->textureCopier(), m_layerTreeHostImpl->renderer()->textureUploader(), &queue, maxPartialTextureUpdates());
+ CCTextureUpdateController::updateTextures(m_layerTreeHostImpl->resourceProvider(), m_layerTreeHostImpl->renderer()->textureCopier(), m_layerTreeHostImpl->renderer()->textureUploader(), &queue);
m_layerTreeHost->finishCommitOnImplThread(m_layerTreeHostImpl.get());
« no previous file with comments | « no previous file | cc/CCTextureUpdateController.h » ('j') | cc/CCTextureUpdateController.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698