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

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

Issue 83183005: Add synthetic delay points for latency testing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address David's comments. Created 7 years 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_RASTER_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_RASTER_WORKER_POOL_H_
6 #define CC_RESOURCES_RASTER_WORKER_POOL_H_ 6 #define CC_RESOURCES_RASTER_WORKER_POOL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 void set_raster_required_for_activation_finished_task( 240 void set_raster_required_for_activation_finished_task(
241 scoped_refptr<internal::WorkerPoolTask> 241 scoped_refptr<internal::WorkerPoolTask>
242 raster_required_for_activation_finished_task) { 242 raster_required_for_activation_finished_task) {
243 raster_required_for_activation_finished_task_ = 243 raster_required_for_activation_finished_task_ =
244 raster_required_for_activation_finished_task; 244 raster_required_for_activation_finished_task;
245 } 245 }
246 246
247 scoped_refptr<internal::WorkerPoolTask> CreateRasterFinishedTask(); 247 scoped_refptr<internal::WorkerPoolTask> CreateRasterFinishedTask();
248 scoped_refptr<internal::WorkerPoolTask> 248 scoped_refptr<internal::WorkerPoolTask>
249 CreateRasterRequiredForActivationFinishedTask(); 249 CreateRasterRequiredForActivationFinishedTask(
250 bool has_tasks_required_for_activation);
250 251
251 scoped_ptr<base::Value> ScheduledStateAsValue() const; 252 scoped_ptr<base::Value> ScheduledStateAsValue() const;
252 253
253 static internal::GraphNode* CreateGraphNodeForTask( 254 static internal::GraphNode* CreateGraphNodeForTask(
254 internal::WorkerPoolTask* task, 255 internal::WorkerPoolTask* task,
255 unsigned priority, 256 unsigned priority,
256 TaskGraph* graph); 257 TaskGraph* graph);
257 258
258 static internal::GraphNode* CreateGraphNodeForRasterTask( 259 static internal::GraphNode* CreateGraphNodeForRasterTask(
259 internal::WorkerPoolTask* raster_task, 260 internal::WorkerPoolTask* raster_task,
(...skipping 13 matching lines...) Expand all
273 274
274 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; 275 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_;
275 scoped_refptr<internal::WorkerPoolTask> 276 scoped_refptr<internal::WorkerPoolTask>
276 raster_required_for_activation_finished_task_; 277 raster_required_for_activation_finished_task_;
277 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; 278 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_;
278 }; 279 };
279 280
280 } // namespace cc 281 } // namespace cc
281 282
282 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ 283 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698