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

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

Issue 13859012: cc: Remove cheapness estimator usage from tile manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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/base/worker_pool.cc ('k') | cc/resources/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_RASTER_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_RASTER_WORKER_POOL_H_
6 #define CC_RESOURCES_RASTER_WORKER_POOL_H_ 6 #define CC_RESOURCES_RASTER_WORKER_POOL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "cc/base/worker_pool.h" 10 #include "cc/base/worker_pool.h"
11 11
12 namespace cc { 12 namespace cc {
13 class PicturePileImpl; 13 class PicturePileImpl;
14 14
15 // A worker thread pool that runs raster tasks. 15 // A worker thread pool that runs raster tasks.
16 class RasterWorkerPool : public WorkerPool { 16 class RasterWorkerPool : public WorkerPool {
17 public: 17 public:
18 typedef base::Callback<void(PicturePileImpl*)> 18 typedef base::Callback<void(PicturePileImpl* picture_pile)> RasterCallback;
vmpstr 2013/04/26 21:31:55 That kind of looks weird to me. Is that in line wi
reveman 2013/04/26 22:28:25 this is very inconsistent throughout chromium code
vmpstr 2013/04/26 22:51:35 Oh I think presubmit might be confusing (PicturePi
19 RasterCallback;
20 19
21 virtual ~RasterWorkerPool(); 20 virtual ~RasterWorkerPool();
22 21
23 static scoped_ptr<RasterWorkerPool> Create( 22 static scoped_ptr<RasterWorkerPool> Create(
24 WorkerPoolClient* client, size_t num_threads) { 23 WorkerPoolClient* client, size_t num_threads) {
25 return make_scoped_ptr(new RasterWorkerPool(client, num_threads)); 24 return make_scoped_ptr(new RasterWorkerPool(client, num_threads));
26 } 25 }
27 26
28 void PostRasterTaskAndReply(PicturePileImpl* picture_pile, 27 void PostRasterTaskAndReply(PicturePileImpl* picture_pile,
29 bool is_cheap,
30 const RasterCallback& task, 28 const RasterCallback& task,
31 const base::Closure& reply); 29 const base::Closure& reply);
32 30
33 private: 31 private:
34 RasterWorkerPool(WorkerPoolClient* client, size_t num_threads); 32 RasterWorkerPool(WorkerPoolClient* client, size_t num_threads);
35 33
36 DISALLOW_COPY_AND_ASSIGN(RasterWorkerPool); 34 DISALLOW_COPY_AND_ASSIGN(RasterWorkerPool);
37 }; 35 };
38 36
39 } // namespace cc 37 } // namespace cc
40 38
41 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ 39 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/base/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