| 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_IMAGE_RASTER_WORKER_POOL_H_ | 5 #ifndef CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ |
| 6 #define CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ | 6 #define CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "cc/resources/raster_worker_pool.h" | 10 #include "cc/resources/raster_worker_pool.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 56 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 57 TaskGraphRunner* task_graph_runner_; | 57 TaskGraphRunner* task_graph_runner_; |
| 58 const NamespaceToken namespace_token_; | 58 const NamespaceToken namespace_token_; |
| 59 RasterizerClient* client_; | 59 RasterizerClient* client_; |
| 60 ResourceProvider* resource_provider_; | 60 ResourceProvider* resource_provider_; |
| 61 | 61 |
| 62 bool raster_tasks_pending_; | 62 bool raster_tasks_pending_; |
| 63 bool raster_tasks_required_for_activation_pending_; | 63 bool raster_tasks_required_for_activation_pending_; |
| 64 | 64 |
| 65 base::WeakPtrFactory<ImageRasterWorkerPool> raster_finished_weak_ptr_factory_; | |
| 66 | |
| 67 scoped_refptr<RasterizerTask> raster_finished_task_; | 65 scoped_refptr<RasterizerTask> raster_finished_task_; |
| 68 scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_; | 66 scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_; |
| 69 | 67 |
| 70 // Task graph used when scheduling tasks and vector used to gather | 68 // Task graph used when scheduling tasks and vector used to gather |
| 71 // completed tasks. | 69 // completed tasks. |
| 72 TaskGraph graph_; | 70 TaskGraph graph_; |
| 73 Task::Vector completed_tasks_; | 71 Task::Vector completed_tasks_; |
| 74 | 72 |
| 73 base::WeakPtrFactory<ImageRasterWorkerPool> raster_finished_weak_ptr_factory_; |
| 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool); | 75 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace cc | 78 } // namespace cc |
| 79 | 79 |
| 80 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ | 80 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ |
| OLD | NEW |