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 | 9 |
10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 size_t max_bytes_pending_upload_; | 82 size_t max_bytes_pending_upload_; |
83 bool has_performed_uploads_since_last_flush_; | 83 bool has_performed_uploads_since_last_flush_; |
84 base::TimeTicks check_for_completed_raster_tasks_time_; | 84 base::TimeTicks check_for_completed_raster_tasks_time_; |
85 bool check_for_completed_raster_tasks_pending_; | 85 bool check_for_completed_raster_tasks_pending_; |
86 | 86 |
87 bool should_notify_client_if_no_tasks_are_pending_; | 87 bool should_notify_client_if_no_tasks_are_pending_; |
88 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_; | 88 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_; |
89 bool raster_finished_task_pending_; | 89 bool raster_finished_task_pending_; |
90 bool raster_required_for_activation_finished_task_pending_; | 90 bool raster_required_for_activation_finished_task_pending_; |
91 | 91 |
92 // Avoid unnecessary heap allocations by reusing the same graph and | |
vmpstr
2014/02/10 18:00:19
This comment kind of describes the patch, instead
reveman
2014/02/10 19:13:27
Done.
| |
93 // completed tasks vector. | |
94 internal::TaskGraph graph_; | |
95 internal::Task::Vector completed_tasks_; | |
vmpstr
2014/02/10 18:00:19
I'm kind of conflicted about this change. What I m
reveman
2014/02/10 19:13:27
The performance tests reflect real usage quite wel
| |
96 | |
92 base::WeakPtrFactory<PixelBufferRasterWorkerPool> weak_factory_; | 97 base::WeakPtrFactory<PixelBufferRasterWorkerPool> weak_factory_; |
93 | 98 |
94 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); | 99 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); |
95 }; | 100 }; |
96 | 101 |
97 } // namespace cc | 102 } // namespace cc |
98 | 103 |
99 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ | 104 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ |
OLD | NEW |