| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "raster_worker_pool.h" | 5 #include "content/renderer/raster_worker_pool.h" |
| 6 | 6 |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 // A sequenced task runner which posts tasks to a RasterWorkerPool. | 11 // A sequenced task runner which posts tasks to a RasterWorkerPool. |
| 12 class RasterWorkerPool::RasterWorkerPoolSequencedTaskRunner | 12 class RasterWorkerPool::RasterWorkerPoolSequencedTaskRunner |
| 13 : public base::SequencedTaskRunner { | 13 : public base::SequencedTaskRunner { |
| 14 public: | 14 public: |
| 15 RasterWorkerPoolSequencedTaskRunner(cc::TaskGraphRunner* task_graph_runner) | 15 RasterWorkerPoolSequencedTaskRunner(cc::TaskGraphRunner* task_graph_runner) |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 // Overridden from cc::Task: | 160 // Overridden from cc::Task: |
| 161 void RasterWorkerPool::ClosureTask::RunOnWorkerThread() { | 161 void RasterWorkerPool::ClosureTask::RunOnWorkerThread() { |
| 162 closure_.Run(); | 162 closure_.Run(); |
| 163 closure_.Reset(); | 163 closure_.Reset(); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 RasterWorkerPool::ClosureTask::~ClosureTask() {} | 166 RasterWorkerPool::ClosureTask::~ClosureTask() {} |
| 167 | 167 |
| 168 } // namespace content | 168 } // namespace content |
| OLD | NEW |