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

Unified Diff: cc/layer_tree_host_impl.h

Issue 12217105: cc: Check for completed raster tasks at interval. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Post task to impl thread when worker pool becomes idle. 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 | cc/layer_tree_host_impl.cc » ('j') | cc/worker_pool.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl.h
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h
index b95607494b9663b0a36a058f7081fa06f4bf20ac..c5e23c8348f582406f3e7f08563fb27d2ebae403 100644
--- a/cc/layer_tree_host_impl.h
+++ b/cc/layer_tree_host_impl.h
@@ -51,8 +51,10 @@ public:
virtual void onHasPendingTreeStateChanged(bool hasPendingTree) = 0;
virtual void setNeedsRedrawOnImplThread() = 0;
virtual void didUploadVisibleHighResolutionTileOnImplThread() = 0;
+ virtual void didDetectIdleRasterOnImplThread() = 0;
virtual void setNeedsCommitOnImplThread() = 0;
virtual void setNeedsManageTilesOnImplThread() = 0;
+ virtual void setNeedsCheckForCompletedRasterTasksOnImplThread() = 0;
virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<AnimationEventsVector>, base::Time wallClockTime) = 0;
// Returns true if resources were deleted by this call.
virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) = 0;
@@ -137,7 +139,9 @@ public:
// TileManagerClient implementation.
virtual void ScheduleManageTiles() OVERRIDE;
+ virtual void ScheduleCheckForCompletedRasterTasks() OVERRIDE;
virtual void DidUploadVisibleHighResolutionTile() OVERRIDE;
+ virtual void DidDetectIdleRaster() OVERRIDE;
// OutputSurfaceClient implementation.
virtual void OnVSyncParametersChanged(base::TimeTicks timebase, base::TimeDelta interval) OVERRIDE;
@@ -263,6 +267,8 @@ public:
scoped_ptr<base::Value> activationStateAsValue() const;
scoped_ptr<base::Value> frameStateAsValue() const;
+ void checkForCompletedRasterTasks();
+
protected:
LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*);
void activatePendingTree();
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.cc » ('j') | cc/worker_pool.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698