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

Side by Side Diff: cc/resources/image_copy_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: Created 6 years, 4 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 | « no previous file | cc/resources/image_raster_worker_pool.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_IMAGE_COPY_RASTER_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_
6 #define CC_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_ 6 #define CC_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 ResourceProvider* resource_provider_; 95 ResourceProvider* resource_provider_;
96 ResourcePool* resource_pool_; 96 ResourcePool* resource_pool_;
97 97
98 RasterTaskState::Vector raster_task_states_; 98 RasterTaskState::Vector raster_task_states_;
99 99
100 bool has_performed_copy_since_last_flush_; 100 bool has_performed_copy_since_last_flush_;
101 101
102 bool raster_tasks_pending_; 102 bool raster_tasks_pending_;
103 bool raster_tasks_required_for_activation_pending_; 103 bool raster_tasks_required_for_activation_pending_;
104 104
105 base::WeakPtrFactory<ImageCopyRasterWorkerPool>
106 raster_finished_weak_ptr_factory_;
107
108 scoped_refptr<RasterizerTask> raster_finished_task_; 105 scoped_refptr<RasterizerTask> raster_finished_task_;
109 scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_; 106 scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_;
110 107
111 // Task graph used when scheduling tasks and vector used to gather 108 // Task graph used when scheduling tasks and vector used to gather
112 // completed tasks. 109 // completed tasks.
113 TaskGraph graph_; 110 TaskGraph graph_;
114 Task::Vector completed_tasks_; 111 Task::Vector completed_tasks_;
115 112
113 base::WeakPtrFactory<ImageCopyRasterWorkerPool>
114 raster_finished_weak_ptr_factory_;
Sikugu_ 2014/08/20 05:34:29 are there any other left out places in cc where th
115
116 DISALLOW_COPY_AND_ASSIGN(ImageCopyRasterWorkerPool); 116 DISALLOW_COPY_AND_ASSIGN(ImageCopyRasterWorkerPool);
117 }; 117 };
118 118
119 } // namespace cc 119 } // namespace cc
120 120
121 #endif // CC_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_ 121 #endif // CC_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/image_raster_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698