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_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ | 5 #ifndef CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ |
6 #define CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ | 6 #define CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 16 matching lines...) Expand all Loading... |
27 num_threads, | 27 num_threads, |
28 max_transfer_buffer_usage_bytes)); | 28 max_transfer_buffer_usage_bytes)); |
29 } | 29 } |
30 | 30 |
31 // Overridden from WorkerPool: | 31 // Overridden from WorkerPool: |
32 virtual void Shutdown() OVERRIDE; | 32 virtual void Shutdown() OVERRIDE; |
33 virtual void CheckForCompletedTasks() OVERRIDE; | 33 virtual void CheckForCompletedTasks() OVERRIDE; |
34 | 34 |
35 // Overridden from RasterWorkerPool: | 35 // Overridden from RasterWorkerPool: |
36 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE; | 36 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE; |
| 37 virtual GLenum GetResourceTarget() const OVERRIDE; |
37 virtual ResourceFormat GetResourceFormat() const OVERRIDE; | 38 virtual ResourceFormat GetResourceFormat() const OVERRIDE; |
38 virtual void OnRasterTasksFinished() OVERRIDE; | 39 virtual void OnRasterTasksFinished() OVERRIDE; |
39 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; | 40 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; |
40 | 41 |
41 private: | 42 private: |
42 PixelBufferRasterWorkerPool(ResourceProvider* resource_provider, | 43 PixelBufferRasterWorkerPool(ResourceProvider* resource_provider, |
43 size_t num_threads, | 44 size_t num_threads, |
44 size_t max_transfer_buffer_usage_bytes); | 45 size_t max_transfer_buffer_usage_bytes); |
45 | 46 |
46 void FlushUploads(); | 47 void FlushUploads(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 bool should_notify_client_if_no_tasks_are_pending_; | 83 bool should_notify_client_if_no_tasks_are_pending_; |
83 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_; | 84 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_; |
84 ResourceFormat format_; | 85 ResourceFormat format_; |
85 | 86 |
86 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); | 87 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); |
87 }; | 88 }; |
88 | 89 |
89 } // namespace cc | 90 } // namespace cc |
90 | 91 |
91 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ | 92 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ |
OLD | NEW |