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

Unified Diff: cc/resources/raster_worker_pool.h

Issue 140333006: cc: Move internal::Task::did_schedule_ to internal::WorkerPoolTask. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cc_unittests Created 6 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 | « cc/resources/pixel_buffer_raster_worker_pool.cc ('k') | cc/resources/raster_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/raster_worker_pool.h
diff --git a/cc/resources/raster_worker_pool.h b/cc/resources/raster_worker_pool.h
index 081dbb367d37f4c10fa007990e68e0e5f444b352..c715e0e0c115f4eaa7114019d7247043e90c530a 100644
--- a/cc/resources/raster_worker_pool.h
+++ b/cc/resources/raster_worker_pool.h
@@ -47,6 +47,10 @@ class CC_EXPORT WorkerPoolTask : public Task {
virtual void CompleteOnOriginThread(WorkerPoolTaskClient* client) = 0;
virtual void RunReplyOnOriginThread() = 0;
+ void WillSchedule();
+ void DidSchedule();
+ bool HasBeenScheduled() const;
+
void WillComplete();
void DidComplete();
bool HasCompleted() const;
@@ -56,6 +60,7 @@ class CC_EXPORT WorkerPoolTask : public Task {
virtual ~WorkerPoolTask();
private:
+ bool did_schedule_;
bool did_complete_;
};
@@ -107,7 +112,7 @@ class CC_EXPORT RasterWorkerPoolClient {
};
// A worker thread pool that runs raster tasks.
-class CC_EXPORT RasterWorkerPool {
+class CC_EXPORT RasterWorkerPool : public internal::WorkerPoolTaskClient {
public:
class CC_EXPORT Task {
public:
« no previous file with comments | « cc/resources/pixel_buffer_raster_worker_pool.cc ('k') | cc/resources/raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698