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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « cc/resources/gpu_rasterizer.cc ('k') | cc/resources/one_copy_tile_task_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 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 #include "cc/resources/gpu_tile_task_worker_pool.h" 5 #include "cc/resources/gpu_tile_task_worker_pool.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "cc/resources/raster_buffer.h" 10 #include "cc/resources/raster_buffer.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 graph_.edges.push_back( 118 graph_.edges.push_back(
119 TaskGraph::Edge(task, new_task_set_finished_tasks[task_set].get())); 119 TaskGraph::Edge(task, new_task_set_finished_tasks[task_set].get()));
120 } 120 }
121 121
122 InsertNodesForRasterTask(&graph_, task, task->dependencies(), priority++); 122 InsertNodesForRasterTask(&graph_, task, task->dependencies(), priority++);
123 } 123 }
124 124
125 for (TaskSet task_set = 0; task_set < kNumberOfTaskSets; ++task_set) { 125 for (TaskSet task_set = 0; task_set < kNumberOfTaskSets; ++task_set) {
126 InsertNodeForTask(&graph_, new_task_set_finished_tasks[task_set].get(), 126 InsertNodeForTask(&graph_, new_task_set_finished_tasks[task_set].get(),
127 kTaskSetFinishedTaskPriority, task_count[task_set]); 127 kTaskSetFinishedTaskPriorityBase + task_set,
128 task_count[task_set]);
128 } 129 }
129 130
130 ScheduleTasksOnOriginThread(this, &graph_); 131 ScheduleTasksOnOriginThread(this, &graph_);
131 task_graph_runner_->ScheduleTasks(namespace_token_, &graph_); 132 task_graph_runner_->ScheduleTasks(namespace_token_, &graph_);
132 133
133 std::copy(new_task_set_finished_tasks, 134 std::copy(new_task_set_finished_tasks,
134 new_task_set_finished_tasks + kNumberOfTaskSets, 135 new_task_set_finished_tasks + kNumberOfTaskSets,
135 task_set_finished_tasks_); 136 task_set_finished_tasks_);
136 } 137 }
137 138
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 void GpuTileTaskWorkerPool::OnTaskSetFinished(TaskSet task_set) { 175 void GpuTileTaskWorkerPool::OnTaskSetFinished(TaskSet task_set) {
175 TRACE_EVENT1("cc", "GpuTileTaskWorkerPool::OnTaskSetFinished", "task_set", 176 TRACE_EVENT1("cc", "GpuTileTaskWorkerPool::OnTaskSetFinished", "task_set",
176 task_set); 177 task_set);
177 178
178 DCHECK(tasks_pending_[task_set]); 179 DCHECK(tasks_pending_[task_set]);
179 tasks_pending_[task_set] = false; 180 tasks_pending_[task_set] = false;
180 client_->DidFinishRunningTileTasks(task_set); 181 client_->DidFinishRunningTileTasks(task_set);
181 } 182 }
182 183
183 } // namespace cc 184 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/gpu_rasterizer.cc ('k') | cc/resources/one_copy_tile_task_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698