| 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/gpu_raster_worker_pool.h" | 5 #include "cc/resources/gpu_raster_worker_pool.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "cc/output/context_provider.h" | 8 #include "cc/output/context_provider.h" |
| 9 #include "cc/resources/resource.h" | 9 #include "cc/resources/resource.h" |
| 10 #include "cc/resources/resource_provider.h" | 10 #include "cc/resources/resource_provider.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 weak_ptr_factory_.GetWeakPtr())); | 178 weak_ptr_factory_.GetWeakPtr())); |
| 179 run_tasks_on_origin_thread_pending_ = true; | 179 run_tasks_on_origin_thread_pending_ = true; |
| 180 } | 180 } |
| 181 | 181 |
| 182 void GpuRasterWorkerPool::RunTasksOnOriginThread() { | 182 void GpuRasterWorkerPool::RunTasksOnOriginThread() { |
| 183 TRACE_EVENT0("cc", "GpuRasterWorkerPool::RunTasksOnOriginThread"); | 183 TRACE_EVENT0("cc", "GpuRasterWorkerPool::RunTasksOnOriginThread"); |
| 184 | 184 |
| 185 DCHECK(run_tasks_on_origin_thread_pending_); | 185 DCHECK(run_tasks_on_origin_thread_pending_); |
| 186 run_tasks_on_origin_thread_pending_ = false; | 186 run_tasks_on_origin_thread_pending_ = false; |
| 187 | 187 |
| 188 ResourceProvider::ScopedGpuRaster gpu_raster(resource_provider_); | 188 ScopedGpuRaster gpu_raster(resource_provider_); |
| 189 task_graph_runner_->RunUntilIdle(); | 189 task_graph_runner_->RunUntilIdle(); |
| 190 } | 190 } |
| 191 | 191 |
| 192 } // namespace cc | 192 } // namespace cc |
| OLD | NEW |