OLD | NEW |
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/raster_worker_pool.h" | 5 #include "cc/resources/raster_worker_pool.h" |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "cc/debug/devtools_instrumentation.h" | 10 #include "cc/debug/devtools_instrumentation.h" |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 } | 404 } |
405 | 405 |
406 void RasterWorkerPool::SetRasterTasks(RasterTask::Queue* queue) { | 406 void RasterWorkerPool::SetRasterTasks(RasterTask::Queue* queue) { |
407 raster_tasks_.swap(queue->tasks_); | 407 raster_tasks_.swap(queue->tasks_); |
408 } | 408 } |
409 | 409 |
410 void RasterWorkerPool::ScheduleRasterTasks(const RootTask& root) { | 410 void RasterWorkerPool::ScheduleRasterTasks(const RootTask& root) { |
411 scoped_refptr<internal::WorkerPoolTask> new_root(root.internal_); | 411 scoped_refptr<internal::WorkerPoolTask> new_root(root.internal_); |
412 | 412 |
413 TaskGraph graph; | 413 TaskGraph graph; |
414 BuildTaskGraph(new_root, &graph); | 414 BuildTaskGraph(new_root.get(), &graph); |
415 WorkerPool::SetTaskGraph(&graph); | 415 WorkerPool::SetTaskGraph(&graph); |
416 | 416 |
417 root_.swap(new_root); | 417 root_.swap(new_root); |
418 } | 418 } |
419 | 419 |
420 } // namespace cc | 420 } // namespace cc |
OLD | NEW |