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

Unified Diff: cc/resources/pixel_buffer_raster_worker_pool.h

Issue 17244003: cc: Move task graph construction to RasterWorkerPool classes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@wp-run-count
Patch Set: add missing CC_EXPORT Created 7 years, 6 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/image_raster_worker_pool.cc ('k') | cc/resources/pixel_buffer_raster_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/pixel_buffer_raster_worker_pool.h
diff --git a/cc/resources/pixel_buffer_raster_worker_pool.h b/cc/resources/pixel_buffer_raster_worker_pool.h
index 2a89d4b74d6a8443c655bf722e46a0fe24ba794d..be609a832c377906ffde9db88c78f281fff13e5b 100644
--- a/cc/resources/pixel_buffer_raster_worker_pool.h
+++ b/cc/resources/pixel_buffer_raster_worker_pool.h
@@ -33,6 +33,9 @@ class CC_EXPORT PixelBufferRasterWorkerPool : public RasterWorkerPool {
PixelBufferRasterWorkerPool(ResourceProvider* resource_provider,
size_t num_threads);
+ // Overridden from RasterWorkerPool:
+ virtual void OnRasterTasksFinished() OVERRIDE;
+
void FlushUploads();
void CheckForCompletedUploads();
void ScheduleCheckForCompletedRasterTasks();
@@ -43,11 +46,6 @@ class CC_EXPORT PixelBufferRasterWorkerPool : public RasterWorkerPool {
bool was_canceled,
bool needs_upload);
void DidCompleteRasterTask(internal::RasterWorkerPoolTask* task);
- void OnRasterFinished(int64 schedule_more_tasks_count);
-
- static void RunRasterFinishedTask(
- scoped_refptr<base::MessageLoopProxy> origin_loop,
- const base::Closure& on_raster_finished_callback);
bool shutdown_;
@@ -62,9 +60,6 @@ class CC_EXPORT PixelBufferRasterWorkerPool : public RasterWorkerPool {
base::CancelableClosure check_for_completed_raster_tasks_callback_;
bool check_for_completed_raster_tasks_pending_;
- base::WeakPtrFactory<PixelBufferRasterWorkerPool> weak_ptr_factory_;
- int64 schedule_more_tasks_count_;
-
DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool);
};
« no previous file with comments | « cc/resources/image_raster_worker_pool.cc ('k') | cc/resources/pixel_buffer_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698