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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // Returns the format that needs to be used for raster task resources. | 189 // Returns the format that needs to be used for raster task resources. |
190 virtual ResourceFormat GetResourceFormat() const = 0; | 190 virtual ResourceFormat GetResourceFormat() const = 0; |
191 | 191 |
192 // TODO(vmpstr): Figure out an elegant way to not pass this many parameters. | 192 // TODO(vmpstr): Figure out an elegant way to not pass this many parameters. |
193 static RasterTask CreateRasterTask( | 193 static RasterTask CreateRasterTask( |
194 const Resource* resource, | 194 const Resource* resource, |
195 PicturePileImpl* picture_pile, | 195 PicturePileImpl* picture_pile, |
196 gfx::Rect content_rect, | 196 gfx::Rect content_rect, |
197 float contents_scale, | 197 float contents_scale, |
198 RasterMode raster_mode, | 198 RasterMode raster_mode, |
199 bool is_tile_in_pending_tree_now_bin, | |
200 TileResolution tile_resolution, | 199 TileResolution tile_resolution, |
201 int layer_id, | 200 int layer_id, |
202 const void* tile_id, | 201 const void* tile_id, |
203 int source_frame_number, | 202 int source_frame_number, |
204 RenderingStatsInstrumentation* rendering_stats, | 203 RenderingStatsInstrumentation* rendering_stats, |
205 const RasterTask::Reply& reply, | 204 const RasterTask::Reply& reply, |
206 Task::Set* dependencies); | 205 Task::Set* dependencies); |
207 | 206 |
208 static Task CreateImageDecodeTask( | 207 static Task CreateImageDecodeTask( |
209 skia::LazyPixelRef* pixel_ref, | 208 skia::LazyPixelRef* pixel_ref, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 | 274 |
276 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; | 275 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; |
277 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; | 276 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; |
278 scoped_refptr<internal::WorkerPoolTask> | 277 scoped_refptr<internal::WorkerPoolTask> |
279 raster_required_for_activation_finished_task_; | 278 raster_required_for_activation_finished_task_; |
280 }; | 279 }; |
281 | 280 |
282 } // namespace cc | 281 } // namespace cc |
283 | 282 |
284 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ | 283 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ |
OLD | NEW |