OLD | NEW |
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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 gfx::Rect content_rect, | 190 gfx::Rect content_rect, |
191 float contents_scale, | 191 float contents_scale, |
192 RasterMode raster_mode, | 192 RasterMode raster_mode, |
193 bool is_tile_in_pending_tree_now_bin, | 193 bool is_tile_in_pending_tree_now_bin, |
194 TileResolution tile_resolution, | 194 TileResolution tile_resolution, |
195 int layer_id, | 195 int layer_id, |
196 const void* tile_id, | 196 const void* tile_id, |
197 int source_frame_number, | 197 int source_frame_number, |
198 RenderingStatsInstrumentation* rendering_stats, | 198 RenderingStatsInstrumentation* rendering_stats, |
199 const RasterTask::Reply& reply, | 199 const RasterTask::Reply& reply, |
200 Task::Set* dependencies); | 200 Task::Set* dependencies, |
| 201 bool use_16bit_tiles); |
201 | 202 |
202 static Task CreateImageDecodeTask( | 203 static Task CreateImageDecodeTask( |
203 skia::LazyPixelRef* pixel_ref, | 204 skia::LazyPixelRef* pixel_ref, |
204 int layer_id, | 205 int layer_id, |
205 RenderingStatsInstrumentation* stats_instrumentation, | 206 RenderingStatsInstrumentation* stats_instrumentation, |
206 const Task::Reply& reply); | 207 const Task::Reply& reply); |
207 | 208 |
208 protected: | 209 protected: |
209 typedef std::vector<scoped_refptr<internal::WorkerPoolTask> > TaskVector; | 210 typedef std::vector<scoped_refptr<internal::WorkerPoolTask> > TaskVector; |
210 typedef std::vector<scoped_refptr<internal::RasterWorkerPoolTask> > | 211 typedef std::vector<scoped_refptr<internal::RasterWorkerPoolTask> > |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 270 |
270 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; | 271 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; |
271 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; | 272 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; |
272 scoped_refptr<internal::WorkerPoolTask> | 273 scoped_refptr<internal::WorkerPoolTask> |
273 raster_required_for_activation_finished_task_; | 274 raster_required_for_activation_finished_task_; |
274 }; | 275 }; |
275 | 276 |
276 } // namespace cc | 277 } // namespace cc |
277 | 278 |
278 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ | 279 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ |
OLD | NEW |