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

Side by Side Diff: cc/resources/image_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 unified diff | Download patch
« no previous file with comments | « cc/cc_tests.gyp ('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, size_t num_threads) { 17 ResourceProvider* resource_provider, size_t num_threads) {
18 return make_scoped_ptr<RasterWorkerPool>( 18 return make_scoped_ptr<RasterWorkerPool>(
19 new ImageRasterWorkerPool(resource_provider, num_threads)); 19 new ImageRasterWorkerPool(resource_provider, num_threads));
20 } 20 }
21 21
22 // Overridden from RasterWorkerPool: 22 // Overridden from RasterWorkerPool:
23 virtual void Shutdown() OVERRIDE;
24 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE; 23 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE;
25 24
26 private: 25 private:
27 ImageRasterWorkerPool(ResourceProvider* resource_provider, 26 ImageRasterWorkerPool(ResourceProvider* resource_provider,
28 size_t num_threads); 27 size_t num_threads);
29 28
30 void OnRasterTaskCompleted( 29 void OnRasterTaskCompleted(
31 scoped_refptr<internal::RasterWorkerPoolTask> task, bool was_canceled); 30 scoped_refptr<internal::RasterWorkerPoolTask> task, bool was_canceled);
32 31
33 TaskMap image_tasks_; 32 TaskMap image_tasks_;
34 33
35 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool); 34 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool);
36 }; 35 };
37 36
38 } // namespace cc 37 } // namespace cc
39 38
40 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ 39 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/resources/image_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698