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

Side by Side Diff: cc/resources/image_raster_worker_pool.cc

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 | « no previous file | cc/resources/pixel_buffer_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 #include "cc/resources/image_raster_worker_pool.h" 5 #include "cc/resources/image_raster_worker_pool.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "cc/debug/traced_value.h" 9 #include "cc/debug/traced_value.h"
10 #include "cc/resources/resource.h" 10 #include "cc/resources/resource.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 TRACE_EVENT_ASYNC_BEGIN0("cc", "ScheduledTasks", this); 80 TRACE_EVENT_ASYNC_BEGIN0("cc", "ScheduledTasks", this);
81 81
82 raster_tasks_pending_ = true; 82 raster_tasks_pending_ = true;
83 raster_tasks_required_for_activation_pending_ = true; 83 raster_tasks_required_for_activation_pending_ = true;
84 84
85 unsigned priority = 0u; 85 unsigned priority = 0u;
86 TaskGraph graph; 86 TaskGraph graph;
87 87
88 scoped_refptr<internal::WorkerPoolTask> 88 scoped_refptr<internal::WorkerPoolTask>
89 new_raster_required_for_activation_finished_task( 89 new_raster_required_for_activation_finished_task(
90 CreateRasterRequiredForActivationFinishedTask()); 90 CreateRasterRequiredForActivationFinishedTask(
91 raster_tasks_required_for_activation().size()));
91 internal::GraphNode* raster_required_for_activation_finished_node = 92 internal::GraphNode* raster_required_for_activation_finished_node =
92 CreateGraphNodeForTask( 93 CreateGraphNodeForTask(
93 new_raster_required_for_activation_finished_task.get(), 94 new_raster_required_for_activation_finished_task.get(),
94 priority++, 95 priority++,
95 &graph); 96 &graph);
96 97
97 scoped_refptr<internal::WorkerPoolTask> new_raster_finished_task( 98 scoped_refptr<internal::WorkerPoolTask> new_raster_finished_task(
98 CreateRasterFinishedTask()); 99 CreateRasterFinishedTask());
99 internal::GraphNode* raster_finished_node = 100 internal::GraphNode* raster_finished_node =
100 CreateGraphNodeForTask(new_raster_finished_task.get(), 101 CreateGraphNodeForTask(new_raster_finished_task.get(),
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 if (is_required_for_activation) { 238 if (is_required_for_activation) {
238 raster_required_for_activation_finished_node->add_dependency(); 239 raster_required_for_activation_finished_node->add_dependency();
239 image_node->add_dependent(raster_required_for_activation_finished_node); 240 image_node->add_dependent(raster_required_for_activation_finished_node);
240 } 241 }
241 242
242 raster_finished_node->add_dependency(); 243 raster_finished_node->add_dependency();
243 image_node->add_dependent(raster_finished_node); 244 image_node->add_dependent(raster_finished_node);
244 } 245 }
245 246
246 } // namespace cc 247 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/resources/pixel_buffer_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698