OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/zero_copy_tile_task_worker_pool.h" | 5 #include "cc/raster/zero_copy_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/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
10 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
11 #include "base/trace_event/trace_event_argument.h" | 14 #include "base/trace_event/trace_event_argument.h" |
12 #include "cc/debug/traced_value.h" | 15 #include "cc/debug/traced_value.h" |
13 #include "cc/raster/raster_buffer.h" | 16 #include "cc/raster/raster_buffer.h" |
14 #include "cc/resources/platform_color.h" | 17 #include "cc/resources/platform_color.h" |
15 #include "cc/resources/resource.h" | 18 #include "cc/resources/resource.h" |
16 #include "ui/gfx/buffer_format_util.h" | 19 #include "ui/gfx/buffer_format_util.h" |
17 #include "ui/gfx/gpu_memory_buffer.h" | 20 #include "ui/gfx/gpu_memory_buffer.h" |
18 | 21 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 return make_scoped_ptr<RasterBuffer>( | 143 return make_scoped_ptr<RasterBuffer>( |
141 new RasterBufferImpl(resource_provider_, resource)); | 144 new RasterBufferImpl(resource_provider_, resource)); |
142 } | 145 } |
143 | 146 |
144 void ZeroCopyTileTaskWorkerPool::ReleaseBufferForRaster( | 147 void ZeroCopyTileTaskWorkerPool::ReleaseBufferForRaster( |
145 scoped_ptr<RasterBuffer> buffer) { | 148 scoped_ptr<RasterBuffer> buffer) { |
146 // Nothing to do here. RasterBufferImpl destructor cleans up after itself. | 149 // Nothing to do here. RasterBufferImpl destructor cleans up after itself. |
147 } | 150 } |
148 | 151 |
149 } // namespace cc | 152 } // namespace cc |
OLD | NEW |