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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11348384: cc: Use asynchronous set pixels API for impl-side painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ManagedTileState::resource_id. Created 8 years 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 | « cc/layer_tree_host_impl.h ('k') | cc/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 4a1cb713a26c28666807aca089c982595504163a..73e01c3ca660e4e51d914b30371906698fd249af 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -737,6 +737,9 @@ bool LayerTreeHostImpl::prepareToDraw(FrameData& frame)
TRACE_EVENT0("cc", "LayerTreeHostImpl::prepareToDraw");
DCHECK(canDraw());
+ if (m_tileManager)
+ m_tileManager->CheckForCompletedSetPixels();
+
frame.renderSurfaceLayerList = &m_renderSurfaceLayerList;
frame.renderPasses.clear();
frame.renderPassesById.clear();
@@ -783,8 +786,12 @@ void LayerTreeHostImpl::ScheduleManageTiles()
m_client->setNeedsManageTilesOnImplThread();
}
-void LayerTreeHostImpl::ScheduleRedraw()
+void LayerTreeHostImpl::ScheduleCheckForCompletedSetPixels()
{
+ // CheckForCompletedSetPixels() should be called before we draw and
+ // preferably only once per vsync interval. For now just make sure
+ // a redraw is scheduled and call CheckForCompletedSetPixels() in
+ // prepareToDraw().
if (m_client)
m_client->setNeedsRedrawOnImplThread();
}
« no previous file with comments | « cc/layer_tree_host_impl.h ('k') | cc/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698