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 "content/renderer/raster_worker_pool.h" | 5 #include "content/renderer/raster_worker_pool.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <utility> | 10 #include <utility> |
8 | 11 |
9 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
10 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
11 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
12 | 15 |
13 namespace content { | 16 namespace content { |
14 | 17 |
15 // A sequenced task runner which posts tasks to a RasterWorkerPool. | 18 // A sequenced task runner which posts tasks to a RasterWorkerPool. |
16 class RasterWorkerPool::RasterWorkerPoolSequencedTaskRunner | 19 class RasterWorkerPool::RasterWorkerPoolSequencedTaskRunner |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 319 |
317 // Overridden from cc::Task: | 320 // Overridden from cc::Task: |
318 void RasterWorkerPool::ClosureTask::RunOnWorkerThread() { | 321 void RasterWorkerPool::ClosureTask::RunOnWorkerThread() { |
319 closure_.Run(); | 322 closure_.Run(); |
320 closure_.Reset(); | 323 closure_.Reset(); |
321 } | 324 } |
322 | 325 |
323 RasterWorkerPool::ClosureTask::~ClosureTask() {} | 326 RasterWorkerPool::ClosureTask::~ClosureTask() {} |
324 | 327 |
325 } // namespace content | 328 } // namespace content |
OLD | NEW |