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/raster/gpu_tile_task_worker_pool.h" | 5 #include "cc/raster/gpu_tile_task_worker_pool.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
| 11 #include "base/macros.h" |
9 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
10 #include "cc/playback/display_list_raster_source.h" | 13 #include "cc/playback/display_list_raster_source.h" |
11 #include "cc/raster/gpu_rasterizer.h" | 14 #include "cc/raster/gpu_rasterizer.h" |
12 #include "cc/raster/raster_buffer.h" | 15 #include "cc/raster/raster_buffer.h" |
13 #include "cc/raster/scoped_gpu_raster.h" | 16 #include "cc/raster/scoped_gpu_raster.h" |
14 #include "cc/resources/resource.h" | 17 #include "cc/resources/resource.h" |
15 #include "gpu/command_buffer/client/gles2_interface.h" | 18 #include "gpu/command_buffer/client/gles2_interface.h" |
16 #include "third_party/skia/include/core/SkMultiPictureDraw.h" | 19 #include "third_party/skia/include/core/SkMultiPictureDraw.h" |
17 #include "third_party/skia/include/core/SkPictureRecorder.h" | 20 #include "third_party/skia/include/core/SkPictureRecorder.h" |
18 #include "third_party/skia/include/core/SkSurface.h" | 21 #include "third_party/skia/include/core/SkSurface.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 return scoped_ptr<RasterBuffer>(new RasterBufferImpl( | 176 return scoped_ptr<RasterBuffer>(new RasterBufferImpl( |
174 rasterizer_.get(), resource, resource_content_id, previous_content_id)); | 177 rasterizer_.get(), resource, resource_content_id, previous_content_id)); |
175 } | 178 } |
176 | 179 |
177 void GpuTileTaskWorkerPool::ReleaseBufferForRaster( | 180 void GpuTileTaskWorkerPool::ReleaseBufferForRaster( |
178 scoped_ptr<RasterBuffer> buffer) { | 181 scoped_ptr<RasterBuffer> buffer) { |
179 // Nothing to do here. RasterBufferImpl destructor cleans up after itself. | 182 // Nothing to do here. RasterBufferImpl destructor cleans up after itself. |
180 } | 183 } |
181 | 184 |
182 } // namespace cc | 185 } // namespace cc |
OLD | NEW |