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

Side by Side Diff: cc/resources/image_raster_worker_pool.h

Issue 176403002: Revert of cc: Cleanup internal::WorkerPoolTaskClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/resources/direct_raster_worker_pool.cc ('k') | cc/resources/image_raster_worker_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
6 #define CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ 6 #define CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
7 7
8 #include "cc/resources/raster_worker_pool.h" 8 #include "cc/resources/raster_worker_pool.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool { 12 class CC_EXPORT ImageRasterWorkerPool : public RasterWorkerPool {
13 public: 13 public:
14 virtual ~ImageRasterWorkerPool(); 14 virtual ~ImageRasterWorkerPool();
15 15
16 static scoped_ptr<RasterWorkerPool> Create( 16 static scoped_ptr<RasterWorkerPool> Create(
17 ResourceProvider* resource_provider, 17 ResourceProvider* resource_provider,
18 unsigned texture_target); 18 unsigned texture_target);
19 19
20 // Overridden from RasterWorkerPool: 20 // Overridden from RasterWorkerPool:
21 virtual void ScheduleTasks(RasterTaskQueue* queue) OVERRIDE; 21 virtual void ScheduleTasks(RasterTaskQueue* queue) OVERRIDE;
22 virtual unsigned GetResourceTarget() const OVERRIDE; 22 virtual unsigned GetResourceTarget() const OVERRIDE;
23 virtual ResourceFormat GetResourceFormat() const OVERRIDE; 23 virtual ResourceFormat GetResourceFormat() const OVERRIDE;
24 virtual void CheckForCompletedTasks() OVERRIDE; 24 virtual void CheckForCompletedTasks() OVERRIDE;
25 25
26 // Overridden from internal::WorkerPoolTaskClient: 26 // Overridden from internal::WorkerPoolTaskClient:
27 virtual SkCanvas* AcquireCanvasForRaster(internal::WorkerPoolTask* task, 27 virtual SkCanvas* AcquireCanvasForRaster(internal::RasterWorkerPoolTask* task)
28 const Resource* resource) OVERRIDE; 28 OVERRIDE;
29 virtual void ReleaseCanvasForRaster(internal::WorkerPoolTask* task, 29 virtual void OnRasterCompleted(internal::RasterWorkerPoolTask* task,
30 const Resource* resource) OVERRIDE; 30 const PicturePileImpl::Analysis& analysis)
31 OVERRIDE;
32 virtual void OnImageDecodeCompleted(internal::WorkerPoolTask* task) OVERRIDE {
33 }
31 34
32 protected: 35 protected:
33 ImageRasterWorkerPool(internal::TaskGraphRunner* task_graph_runner, 36 ImageRasterWorkerPool(internal::TaskGraphRunner* task_graph_runner,
34 ResourceProvider* resource_provider, 37 ResourceProvider* resource_provider,
35 unsigned texture_target); 38 unsigned texture_target);
36 39
37 private: 40 private:
38 // Overridden from RasterWorkerPool: 41 // Overridden from RasterWorkerPool:
39 virtual void OnRasterTasksFinished() OVERRIDE; 42 virtual void OnRasterTasksFinished() OVERRIDE;
40 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; 43 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE;
(...skipping 11 matching lines...) Expand all
52 // completed tasks. 55 // completed tasks.
53 internal::TaskGraph graph_; 56 internal::TaskGraph graph_;
54 internal::Task::Vector completed_tasks_; 57 internal::Task::Vector completed_tasks_;
55 58
56 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool); 59 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool);
57 }; 60 };
58 61
59 } // namespace cc 62 } // namespace cc
60 63
61 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ 64 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/resources/direct_raster_worker_pool.cc ('k') | cc/resources/image_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698