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

Side by Side Diff: cc/resources/image_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: added the entry in AUTHORS file 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
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_IMAGE_RASTER_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
6 #define CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ 6 #define CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "cc/resources/raster_worker_pool.h" 10 #include "cc/resources/raster_worker_pool.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 scoped_refptr<base::SequencedTaskRunner> task_runner_; 56 scoped_refptr<base::SequencedTaskRunner> task_runner_;
57 TaskGraphRunner* task_graph_runner_; 57 TaskGraphRunner* task_graph_runner_;
58 const NamespaceToken namespace_token_; 58 const NamespaceToken namespace_token_;
59 RasterizerClient* client_; 59 RasterizerClient* client_;
60 ResourceProvider* resource_provider_; 60 ResourceProvider* resource_provider_;
61 61
62 bool raster_tasks_pending_; 62 bool raster_tasks_pending_;
63 bool raster_tasks_required_for_activation_pending_; 63 bool raster_tasks_required_for_activation_pending_;
64 64
65 base::WeakPtrFactory<ImageRasterWorkerPool> raster_finished_weak_ptr_factory_;
66
67 scoped_refptr<RasterizerTask> raster_finished_task_; 65 scoped_refptr<RasterizerTask> raster_finished_task_;
68 scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_; 66 scoped_refptr<RasterizerTask> raster_required_for_activation_finished_task_;
69 67
70 // Task graph used when scheduling tasks and vector used to gather 68 // Task graph used when scheduling tasks and vector used to gather
71 // completed tasks. 69 // completed tasks.
72 TaskGraph graph_; 70 TaskGraph graph_;
73 Task::Vector completed_tasks_; 71 Task::Vector completed_tasks_;
reveman 2014/08/26 08:48:45 nit: please add blank line here to be consistent w
72 base::WeakPtrFactory<ImageRasterWorkerPool> raster_finished_weak_ptr_factory_;
74 73
75 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool); 74 DISALLOW_COPY_AND_ASSIGN(ImageRasterWorkerPool);
76 }; 75 };
77 76
78 } // namespace cc 77 } // namespace cc
79 78
80 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_ 79 #endif // CC_RESOURCES_IMAGE_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/resources/image_copy_raster_worker_pool.h ('k') | cc/resources/pixel_buffer_raster_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698