OLD | NEW |
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/bitmap_raster_worker_pool.h" | 5 #include "cc/resources/bitmap_raster_worker_pool.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/debug/trace_event_argument.h" | 10 #include "base/debug/trace_event_argument.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 } | 70 } |
71 | 71 |
72 void BitmapRasterWorkerPool::Shutdown() { | 72 void BitmapRasterWorkerPool::Shutdown() { |
73 TRACE_EVENT0("cc", "BitmapRasterWorkerPool::Shutdown"); | 73 TRACE_EVENT0("cc", "BitmapRasterWorkerPool::Shutdown"); |
74 | 74 |
75 TaskGraph empty; | 75 TaskGraph empty; |
76 task_graph_runner_->ScheduleTasks(namespace_token_, &empty); | 76 task_graph_runner_->ScheduleTasks(namespace_token_, &empty); |
77 task_graph_runner_->WaitForTasksToFinishRunning(namespace_token_); | 77 task_graph_runner_->WaitForTasksToFinishRunning(namespace_token_); |
78 } | 78 } |
79 | 79 |
| 80 void BitmapRasterWorkerPool::RunTasks(RasterTaskQueue* queue) { |
| 81 NOTIMPLEMENTED(); |
| 82 } |
| 83 |
80 void BitmapRasterWorkerPool::ScheduleTasks(RasterTaskQueue* queue) { | 84 void BitmapRasterWorkerPool::ScheduleTasks(RasterTaskQueue* queue) { |
81 TRACE_EVENT0("cc", "BitmapRasterWorkerPool::ScheduleTasks"); | 85 TRACE_EVENT0("cc", "BitmapRasterWorkerPool::ScheduleTasks"); |
82 | 86 |
83 if (raster_pending_.none()) | 87 if (raster_pending_.none()) |
84 TRACE_EVENT_ASYNC_BEGIN0("cc", "ScheduledTasks", this); | 88 TRACE_EVENT_ASYNC_BEGIN0("cc", "ScheduledTasks", this); |
85 | 89 |
86 // Mark all task sets as pending. | 90 // Mark all task sets as pending. |
87 raster_pending_.set(); | 91 raster_pending_.set(); |
88 | 92 |
89 unsigned priority = kRasterTaskPriorityBase; | 93 unsigned priority = kRasterTaskPriorityBase; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 new base::debug::TracedValue(); | 198 new base::debug::TracedValue(); |
195 | 199 |
196 state->BeginArray("tasks_pending"); | 200 state->BeginArray("tasks_pending"); |
197 for (TaskSet task_set = 0; task_set < kNumberOfTaskSets; ++task_set) | 201 for (TaskSet task_set = 0; task_set < kNumberOfTaskSets; ++task_set) |
198 state->AppendBoolean(raster_pending_[task_set]); | 202 state->AppendBoolean(raster_pending_[task_set]); |
199 state->EndArray(); | 203 state->EndArray(); |
200 return state; | 204 return state; |
201 } | 205 } |
202 | 206 |
203 } // namespace cc | 207 } // namespace cc |
OLD | NEW |