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 11 matching lines...) Expand all Loading... |
22 return make_scoped_ptr<RasterWorkerPool>( | 22 return make_scoped_ptr<RasterWorkerPool>( |
23 new PixelBufferRasterWorkerPool(resource_provider, num_threads)); | 23 new PixelBufferRasterWorkerPool(resource_provider, num_threads)); |
24 } | 24 } |
25 | 25 |
26 // Overridden from WorkerPool: | 26 // Overridden from WorkerPool: |
27 virtual void Shutdown() OVERRIDE; | 27 virtual void Shutdown() OVERRIDE; |
28 virtual void CheckForCompletedTasks() OVERRIDE; | 28 virtual void CheckForCompletedTasks() OVERRIDE; |
29 | 29 |
30 // Overridden from RasterWorkerPool: | 30 // Overridden from RasterWorkerPool: |
31 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE; | 31 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE; |
| 32 virtual GLenum GetResourceFormat() const OVERRIDE; |
32 virtual void OnRasterTasksFinished() OVERRIDE; | 33 virtual void OnRasterTasksFinished() OVERRIDE; |
33 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; | 34 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; |
34 | 35 |
35 private: | 36 private: |
36 PixelBufferRasterWorkerPool(ResourceProvider* resource_provider, | 37 PixelBufferRasterWorkerPool(ResourceProvider* resource_provider, |
37 size_t num_threads); | 38 size_t num_threads); |
38 | 39 |
39 void FlushUploads(); | 40 void FlushUploads(); |
40 void CheckForCompletedUploads(); | 41 void CheckForCompletedUploads(); |
41 void ScheduleCheckForCompletedRasterTasks(); | 42 void ScheduleCheckForCompletedRasterTasks(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 74 |
74 bool should_notify_client_if_no_tasks_are_pending_; | 75 bool should_notify_client_if_no_tasks_are_pending_; |
75 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_; | 76 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); | 78 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); |
78 }; | 79 }; |
79 | 80 |
80 } // namespace cc | 81 } // namespace cc |
81 | 82 |
82 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ | 83 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ |
OLD | NEW |