| 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/bitmap_tile_task_worker_pool.h" | 5 #include "cc/raster/bitmap_tile_task_worker_pool.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <algorithm> | 10 #include <algorithm> |
| 8 | 11 |
| 12 #include "base/macros.h" |
| 9 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 10 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
| 11 #include "base/trace_event/trace_event_argument.h" | 15 #include "base/trace_event/trace_event_argument.h" |
| 12 #include "cc/debug/traced_value.h" | 16 #include "cc/debug/traced_value.h" |
| 13 #include "cc/playback/display_list_raster_source.h" | 17 #include "cc/playback/display_list_raster_source.h" |
| 14 #include "cc/raster/raster_buffer.h" | 18 #include "cc/raster/raster_buffer.h" |
| 15 #include "cc/resources/platform_color.h" | 19 #include "cc/resources/platform_color.h" |
| 16 #include "cc/resources/resource.h" | 20 #include "cc/resources/resource.h" |
| 17 | 21 |
| 18 namespace cc { | 22 namespace cc { |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 return scoped_ptr<RasterBuffer>(new RasterBufferImpl( | 139 return scoped_ptr<RasterBuffer>(new RasterBufferImpl( |
| 136 resource_provider_, resource, resource_content_id, previous_content_id)); | 140 resource_provider_, resource, resource_content_id, previous_content_id)); |
| 137 } | 141 } |
| 138 | 142 |
| 139 void BitmapTileTaskWorkerPool::ReleaseBufferForRaster( | 143 void BitmapTileTaskWorkerPool::ReleaseBufferForRaster( |
| 140 scoped_ptr<RasterBuffer> buffer) { | 144 scoped_ptr<RasterBuffer> buffer) { |
| 141 // Nothing to do here. RasterBufferImpl destructor cleans up after itself. | 145 // Nothing to do here. RasterBufferImpl destructor cleans up after itself. |
| 142 } | 146 } |
| 143 | 147 |
| 144 } // namespace cc | 148 } // namespace cc |
| OLD | NEW |