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

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

Issue 479183002: Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated the 'nit' comment Created 6 years, 3 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
« no previous file with comments | « cc/resources/image_raster_worker_pool.h ('k') | cc/test/fake_output_surface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <vector> 9 #include <vector>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 size_t max_bytes_pending_upload_; 121 size_t max_bytes_pending_upload_;
122 bool has_performed_uploads_since_last_flush_; 122 bool has_performed_uploads_since_last_flush_;
123 123
124 bool should_notify_client_if_no_tasks_are_pending_; 124 bool should_notify_client_if_no_tasks_are_pending_;
125 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_; 125 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_;
126 bool raster_finished_task_pending_; 126 bool raster_finished_task_pending_;
127 bool raster_required_for_activation_finished_task_pending_; 127 bool raster_required_for_activation_finished_task_pending_;
128 128
129 DelayedUniqueNotifier check_for_completed_raster_task_notifier_; 129 DelayedUniqueNotifier check_for_completed_raster_task_notifier_;
130 130
131 base::WeakPtrFactory<PixelBufferRasterWorkerPool>
132 raster_finished_weak_ptr_factory_;
133
134 scoped_refptr<RasterizerTask> raster_finished_task_; 131 scoped_refptr<RasterizerTask> raster_finished_task_;
135 scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_; 132 scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_;
136 133
137 // Task graph used when scheduling tasks and vector used to gather 134 // Task graph used when scheduling tasks and vector used to gather
138 // completed tasks. 135 // completed tasks.
139 TaskGraph graph_; 136 TaskGraph graph_;
140 Task::Vector completed_tasks_; 137 Task::Vector completed_tasks_;
141 138
139 base::WeakPtrFactory<PixelBufferRasterWorkerPool>
140 raster_finished_weak_ptr_factory_;
141
142 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); 142 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool);
143 }; 143 };
144 144
145 } // namespace cc 145 } // namespace cc
146 146
147 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ 147 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/resources/image_raster_worker_pool.h ('k') | cc/test/fake_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698