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_raster_buffer_provider.h" | 5 #include "cc/raster/bitmap_raster_buffer_provider.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
16 #include "base/trace_event/trace_event_argument.h" | 16 #include "base/trace_event/trace_event_argument.h" |
17 #include "cc/debug/traced_value.h" | 17 #include "cc/debug/traced_value.h" |
18 #include "cc/playback/raster_source.h" | 18 #include "cc/raster/raster_source.h" |
19 #include "cc/resources/platform_color.h" | 19 #include "cc/resources/platform_color.h" |
20 #include "cc/resources/resource.h" | 20 #include "cc/resources/resource.h" |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 namespace { | 23 namespace { |
24 | 24 |
25 class RasterBufferImpl : public RasterBuffer { | 25 class RasterBufferImpl : public RasterBuffer { |
26 public: | 26 public: |
27 RasterBufferImpl(ResourceProvider* resource_provider, | 27 RasterBufferImpl(ResourceProvider* resource_provider, |
28 const Resource* resource, | 28 const Resource* resource, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const ResourceProvider::ResourceIdArray& resource_ids, | 122 const ResourceProvider::ResourceIdArray& resource_ids, |
123 const base::Closure& callback, | 123 const base::Closure& callback, |
124 uint64_t pending_callback_id) const { | 124 uint64_t pending_callback_id) const { |
125 // Bitmap resources are immediately ready to draw. | 125 // Bitmap resources are immediately ready to draw. |
126 return 0; | 126 return 0; |
127 } | 127 } |
128 | 128 |
129 void BitmapRasterBufferProvider::Shutdown() {} | 129 void BitmapRasterBufferProvider::Shutdown() {} |
130 | 130 |
131 } // namespace cc | 131 } // namespace cc |
OLD | NEW |