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

Unified Diff: cc/layer_tree_host_impl_unittest.cc

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
Index: cc/layer_tree_host_impl_unittest.cc
diff --git a/cc/layer_tree_host_impl_unittest.cc b/cc/layer_tree_host_impl_unittest.cc
index 2c6eefcc7e200e6acbf90fd540d189203172dc65..c7e52dd63a31651a1dc30bb6f5f4aca7ca3e2d92 100644
--- a/cc/layer_tree_host_impl_unittest.cc
+++ b/cc/layer_tree_host_impl_unittest.cc
@@ -68,6 +68,7 @@ public:
, m_didRequestCommit(false)
, m_didRequestRedraw(false)
, m_didUploadVisibleHighResolutionTile(false)
+ , m_didDetectIdleRaster(false)
, m_reduceMemoryResult(true)
{
media::InitializeMediaLibraryForTesting();
@@ -95,8 +96,10 @@ public:
virtual void onHasPendingTreeStateChanged(bool hasPendingTree) OVERRIDE { m_hasPendingTree = hasPendingTree; }
virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = true; }
virtual void didUploadVisibleHighResolutionTileOnImplThread() OVERRIDE { m_didUploadVisibleHighResolutionTile = true; }
+ virtual void didDetectIdleRasterOnImplThread() OVERRIDE { m_didDetectIdleRaster = true; }
virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = true; }
virtual void setNeedsManageTilesOnImplThread() OVERRIDE { }
+ virtual void setNeedsCheckForCompletedRasterTasksOnImplThread() OVERRIDE { }
virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<AnimationEventsVector>, base::Time wallClockTime) OVERRIDE { }
virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE { return m_reduceMemoryResult; }
virtual void reduceWastedContentsTextureMemoryOnImplThread() OVERRIDE { }
@@ -229,6 +232,7 @@ protected:
bool m_didRequestCommit;
bool m_didRequestRedraw;
bool m_didUploadVisibleHighResolutionTile;
+ bool m_didDetectIdleRaster;
bool m_reduceMemoryResult;
};
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/raster_worker_pool.h » ('j') | cc/worker_pool.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698