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

Side by Side Diff: cc/resources/pixel_buffer_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 unified diff | Download patch | Annotate | Revision Log
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_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_
6 #define CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ 6 #define CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
11 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "cc/resources/raster_worker_pool.h" 12 #include "cc/resources/raster_worker_pool.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class CC_EXPORT PixelBufferRasterWorkerPool 16 class CC_EXPORT PixelBufferRasterWorkerPool : public RasterWorkerPool {
17 : public RasterWorkerPool,
18 public internal::WorkerPoolTaskClient {
19 public: 17 public:
20 virtual ~PixelBufferRasterWorkerPool(); 18 virtual ~PixelBufferRasterWorkerPool();
21 19
22 static scoped_ptr<RasterWorkerPool> Create( 20 static scoped_ptr<RasterWorkerPool> Create(
23 ResourceProvider* resource_provider, 21 ResourceProvider* resource_provider,
24 ContextProvider* context_provider, 22 ContextProvider* context_provider,
25 size_t max_transfer_buffer_usage_bytes) { 23 size_t max_transfer_buffer_usage_bytes) {
26 return make_scoped_ptr<RasterWorkerPool>(new PixelBufferRasterWorkerPool( 24 return make_scoped_ptr<RasterWorkerPool>(new PixelBufferRasterWorkerPool(
27 resource_provider, context_provider, max_transfer_buffer_usage_bytes)); 25 resource_provider, context_provider, max_transfer_buffer_usage_bytes));
28 } 26 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 bool raster_finished_task_pending_; 89 bool raster_finished_task_pending_;
92 bool raster_required_for_activation_finished_task_pending_; 90 bool raster_required_for_activation_finished_task_pending_;
93 ResourceFormat format_; 91 ResourceFormat format_;
94 92
95 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); 93 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool);
96 }; 94 };
97 95
98 } // namespace cc 96 } // namespace cc
99 97
100 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ 98 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_
OLDNEW
« 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