| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 virtual ResourceFormat GetResourceFormat() const = 0; | 192 virtual ResourceFormat GetResourceFormat() const = 0; |
| 193 | 193 |
| 194 // Force a check for completed raster tasks. | 194 // Force a check for completed raster tasks. |
| 195 // Calls completion callbacks on completed tasks. | 195 // Calls completion callbacks on completed tasks. |
| 196 virtual void CheckForCompletedTasks(); | 196 virtual void CheckForCompletedTasks(); |
| 197 | 197 |
| 198 // TODO(vmpstr): Figure out an elegant way to not pass this many parameters. | 198 // TODO(vmpstr): Figure out an elegant way to not pass this many parameters. |
| 199 static RasterTask CreateRasterTask( | 199 static RasterTask CreateRasterTask( |
| 200 const Resource* resource, | 200 const Resource* resource, |
| 201 PicturePileImpl* picture_pile, | 201 PicturePileImpl* picture_pile, |
| 202 gfx::Rect content_rect, | 202 const gfx::Rect& content_rect, |
| 203 float contents_scale, | 203 float contents_scale, |
| 204 RasterMode raster_mode, | 204 RasterMode raster_mode, |
| 205 TileResolution tile_resolution, | 205 TileResolution tile_resolution, |
| 206 int layer_id, | 206 int layer_id, |
| 207 const void* tile_id, | 207 const void* tile_id, |
| 208 int source_frame_number, | 208 int source_frame_number, |
| 209 bool use_gpu_rasterization, | 209 bool use_gpu_rasterization, |
| 210 RenderingStatsInstrumentation* rendering_stats, | 210 RenderingStatsInstrumentation* rendering_stats, |
| 211 const RasterTask::Reply& reply, | 211 const RasterTask::Reply& reply, |
| 212 Task::Set* dependencies); | 212 Task::Set* dependencies); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; | 291 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; |
| 292 scoped_refptr<internal::WorkerPoolTask> | 292 scoped_refptr<internal::WorkerPoolTask> |
| 293 raster_required_for_activation_finished_task_; | 293 raster_required_for_activation_finished_task_; |
| 294 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; | 294 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; |
| 295 }; | 295 }; |
| 296 | 296 |
| 297 } // namespace cc | 297 } // namespace cc |
| 298 | 298 |
| 299 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ | 299 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ |
| OLD | NEW |