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

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: Rebased. Fixed PerfRasterWorkerPool. Created 6 years, 11 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
« no previous file with comments | « cc/resources/pixel_buffer_raster_worker_pool.cc ('k') | cc/resources/raster_worker_pool.cc » ('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_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 <deque>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
11 #include "cc/debug/rendering_stats_instrumentation.h" 12 #include "cc/debug/rendering_stats_instrumentation.h"
12 #include "cc/resources/picture_pile_impl.h" 13 #include "cc/resources/picture_pile_impl.h"
13 #include "cc/resources/raster_mode.h" 14 #include "cc/resources/raster_mode.h"
14 #include "cc/resources/resource.h" 15 #include "cc/resources/resource.h"
15 #include "cc/resources/resource_provider.h" 16 #include "cc/resources/resource_provider.h"
16 #include "cc/resources/tile_priority.h" 17 #include "cc/resources/tile_priority.h"
17 #include "cc/resources/worker_pool.h" 18 #include "cc/resources/worker_pool.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } 255 }
255 void set_raster_required_for_activation_finished_task( 256 void set_raster_required_for_activation_finished_task(
256 scoped_refptr<internal::WorkerPoolTask> 257 scoped_refptr<internal::WorkerPoolTask>
257 raster_required_for_activation_finished_task) { 258 raster_required_for_activation_finished_task) {
258 raster_required_for_activation_finished_task_ = 259 raster_required_for_activation_finished_task_ =
259 raster_required_for_activation_finished_task; 260 raster_required_for_activation_finished_task;
260 } 261 }
261 262
262 scoped_refptr<internal::WorkerPoolTask> CreateRasterFinishedTask(); 263 scoped_refptr<internal::WorkerPoolTask> CreateRasterFinishedTask();
263 scoped_refptr<internal::WorkerPoolTask> 264 scoped_refptr<internal::WorkerPoolTask>
264 CreateRasterRequiredForActivationFinishedTask(); 265 CreateRasterRequiredForActivationFinishedTask(
266 size_t tasks_required_for_activation_count);
265 267
266 scoped_ptr<base::Value> ScheduledStateAsValue() const; 268 scoped_ptr<base::Value> ScheduledStateAsValue() const;
267 269
268 static internal::GraphNode* CreateGraphNodeForTask( 270 static internal::GraphNode* CreateGraphNodeForTask(
269 internal::WorkerPoolTask* task, 271 internal::WorkerPoolTask* task,
270 unsigned priority, 272 unsigned priority,
271 TaskGraph* graph); 273 TaskGraph* graph);
272 274
273 static internal::GraphNode* CreateGraphNodeForRasterTask( 275 static internal::GraphNode* CreateGraphNodeForRasterTask(
274 internal::WorkerPoolTask* raster_task, 276 internal::WorkerPoolTask* raster_task,
(...skipping 15 matching lines...) Expand all
290 292
291 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_; 293 scoped_refptr<internal::WorkerPoolTask> raster_finished_task_;
292 scoped_refptr<internal::WorkerPoolTask> 294 scoped_refptr<internal::WorkerPoolTask>
293 raster_required_for_activation_finished_task_; 295 raster_required_for_activation_finished_task_;
294 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_; 296 base::WeakPtrFactory<RasterWorkerPool> weak_ptr_factory_;
295 }; 297 };
296 298
297 } // namespace cc 299 } // namespace cc
298 300
299 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_ 301 #endif // CC_RESOURCES_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/resources/pixel_buffer_raster_worker_pool.cc ('k') | cc/resources/raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698