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 #ifndef CC_PLAYBACK_RASTER_SOURCE_H_ | 5 #ifndef CC_RASTER_RASTER_SOURCE_H_ |
6 #define CC_PLAYBACK_RASTER_SOURCE_H_ | 6 #define CC_RASTER_RASTER_SOURCE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "cc/base/cc_export.h" | 14 #include "cc/cc_export.h" |
15 #include "cc/debug/rendering_stats_instrumentation.h" | 15 #include "cc/debug/rendering_stats_instrumentation.h" |
16 #include "cc/playback/image_id.h" | 16 #include "cc/layers/recording_source.h" |
17 #include "cc/playback/recording_source.h" | 17 #include "cc/paint/image_id.h" |
18 #include "skia/ext/analysis_canvas.h" | 18 #include "skia/ext/analysis_canvas.h" |
19 #include "third_party/skia/include/core/SkPicture.h" | 19 #include "third_party/skia/include/core/SkPicture.h" |
20 #include "ui/gfx/color_space.h" | 20 #include "ui/gfx/color_space.h" |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 class DisplayItemList; | 23 class DisplayItemList; |
24 class DrawImage; | 24 class DrawImage; |
25 class ImageDecodeCache; | 25 class ImageDecodeCache; |
26 | 26 |
27 class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> { | 27 class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 const gfx::ColorSpace& canvas_color_space, | 158 const gfx::ColorSpace& canvas_color_space, |
159 SkPicture::AbortCallback* callback) const; | 159 SkPicture::AbortCallback* callback) const; |
160 | 160 |
161 void PrepareForPlaybackToCanvas(SkCanvas* canvas) const; | 161 void PrepareForPlaybackToCanvas(SkCanvas* canvas) const; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(RasterSource); | 163 DISALLOW_COPY_AND_ASSIGN(RasterSource); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace cc | 166 } // namespace cc |
167 | 167 |
168 #endif // CC_PLAYBACK_RASTER_SOURCE_H_ | 168 #endif // CC_RASTER_RASTER_SOURCE_H_ |
OLD | NEW |