| 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_tile_task_worker_pool.h" | 5 #include "cc/raster/gpu_tile_task_worker_pool.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "cc/resources/gpu_rasterizer.h" | 10 #include "cc/playback/raster_source.h" |
| 11 #include "cc/resources/raster_buffer.h" | 11 #include "cc/raster/gpu_rasterizer.h" |
| 12 #include "cc/resources/raster_source.h" | 12 #include "cc/raster/raster_buffer.h" |
| 13 #include "cc/raster/scoped_gpu_raster.h" |
| 13 #include "cc/resources/resource.h" | 14 #include "cc/resources/resource.h" |
| 14 #include "cc/resources/scoped_gpu_raster.h" | |
| 15 #include "gpu/command_buffer/client/gles2_interface.h" | 15 #include "gpu/command_buffer/client/gles2_interface.h" |
| 16 #include "third_party/skia/include/core/SkMultiPictureDraw.h" | 16 #include "third_party/skia/include/core/SkMultiPictureDraw.h" |
| 17 #include "third_party/skia/include/core/SkPictureRecorder.h" | 17 #include "third_party/skia/include/core/SkPictureRecorder.h" |
| 18 #include "third_party/skia/include/core/SkSurface.h" | 18 #include "third_party/skia/include/core/SkSurface.h" |
| 19 #include "third_party/skia/include/gpu/GrContext.h" | 19 #include "third_party/skia/include/gpu/GrContext.h" |
| 20 | 20 |
| 21 namespace cc { | 21 namespace cc { |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 class RasterBufferImpl : public RasterBuffer { | 24 class RasterBufferImpl : public RasterBuffer { |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 void GpuTileTaskWorkerPool::OnTaskSetFinished(TaskSet task_set) { | 220 void GpuTileTaskWorkerPool::OnTaskSetFinished(TaskSet task_set) { |
| 221 TRACE_EVENT1("cc", "GpuTileTaskWorkerPool::OnTaskSetFinished", "task_set", | 221 TRACE_EVENT1("cc", "GpuTileTaskWorkerPool::OnTaskSetFinished", "task_set", |
| 222 task_set); | 222 task_set); |
| 223 | 223 |
| 224 DCHECK(tasks_pending_[task_set]); | 224 DCHECK(tasks_pending_[task_set]); |
| 225 tasks_pending_[task_set] = false; | 225 tasks_pending_[task_set] = false; |
| 226 client_->DidFinishRunningTileTasks(task_set); | 226 client_->DidFinishRunningTileTasks(task_set); |
| 227 } | 227 } |
| 228 | 228 |
| 229 } // namespace cc | 229 } // namespace cc |
| OLD | NEW |