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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 12217105: cc: Check for completed raster tasks at interval. (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
Index: cc/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 607a50c2344ce9bc1810702f5238d2507b535de4..96a0908d218ed8e1415e5d49f6842fa2c2fc7bf1 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -709,6 +709,12 @@ void LayerTreeHostImpl::ScheduleManageTiles()
m_client->setNeedsManageTilesOnImplThread();
}
+void LayerTreeHostImpl::ScheduleCheckForCompletedRasterTasks()
+{
+ if (m_client)
+ m_client->setNeedsCheckForCompletedRasterTasksOnImplThread();
+}
+
void LayerTreeHostImpl::DidUploadVisibleHighResolutionTile()
{
if (m_client)
@@ -1695,6 +1701,14 @@ base::TimeTicks LayerTreeHostImpl::currentFrameTime()
return m_currentFrameTime;
}
+void LayerTreeHostImpl::checkForCompletedRasterTasks()
+{
+ if (!m_tileManager)
+ return;
+
+ m_tileManager->CheckForCompletedRasterTasks();
+}
+
// static
LayerImpl* LayerTreeHostImpl::getNonCompositedContentLayerRecursive(LayerImpl* layer)
{

Powered by Google App Engine
This is Rietveld 408576698