Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Side by Side Diff: cc/resources/pixel_buffer_raster_worker_pool.h

Issue 144463012: cc: Reuse the same TaskGraph and completed tasks vector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comments Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 // Task graph used when scheduling tasks and vector used to gather
93 // completed tasks.
94 internal::TaskGraph graph_;
95 internal::Task::Vector completed_tasks_;
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_
OLDNEW
« no previous file with comments | « cc/resources/image_raster_worker_pool.cc ('k') | cc/resources/pixel_buffer_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698