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 "cc/resources/raster_worker_pool.h" | 8 #include "cc/resources/raster_worker_pool.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 28 matching lines...) Expand all Loading... |
39 ImageRasterWorkerPool(ResourceProvider* resource_provider, | 39 ImageRasterWorkerPool(ResourceProvider* resource_provider, |
40 ContextProvider* context_provider, | 40 ContextProvider* context_provider, |
41 unsigned texture_target); | 41 unsigned texture_target); |
42 | 42 |
43 // Overridden from RasterWorkerPool: | 43 // Overridden from RasterWorkerPool: |
44 virtual void OnRasterTasksFinished() OVERRIDE; | 44 virtual void OnRasterTasksFinished() OVERRIDE; |
45 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; | 45 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; |
46 | 46 |
47 scoped_ptr<base::Value> StateAsValue() const; | 47 scoped_ptr<base::Value> StateAsValue() const; |
48 | 48 |
49 static void CreateGraphNodeForImageRasterTask( | |
50 internal::WorkerPoolTask* image_task, | |
51 const internal::Task::Vector& decode_tasks, | |
52 unsigned priority, | |
53 bool is_required_for_activation, | |
54 internal::GraphNode* raster_required_for_activation_finished_node, | |
55 internal::GraphNode* raster_finished_node, | |
56 TaskGraph* graph); | |
57 | |
58 const unsigned texture_target_; | 49 const unsigned texture_target_; |
59 | 50 |
60 bool raster_tasks_pending_; | 51 bool raster_tasks_pending_; |
61 bool raster_tasks_required_for_activation_pending_; | 52 bool raster_tasks_required_for_activation_pending_; |
62 | 53 |
63 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool); | 54 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool); |
64 }; | 55 }; |
65 | 56 |
66 } // namespace cc | 57 } // namespace cc |
67 | 58 |
68 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ | 59 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ |
OLD | NEW |