| 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 | 20 |
| 21 namespace cc { | 21 namespace cc { |
| 22 class DisplayItemList; | 22 class DisplayItemList; |
| 23 class DrawImage; | 23 class DrawImage; |
| 24 class ImageDecodeCache; | 24 class ImageDecodeCache; |
| 25 | 25 |
| 26 class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> { | 26 class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> { |
| 27 public: | 27 public: |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 private: | 153 private: |
| 154 void RasterCommon(SkCanvas* canvas, SkPicture::AbortCallback* callback) const; | 154 void RasterCommon(SkCanvas* canvas, SkPicture::AbortCallback* callback) const; |
| 155 | 155 |
| 156 void PrepareForPlaybackToCanvas(SkCanvas* canvas) const; | 156 void PrepareForPlaybackToCanvas(SkCanvas* canvas) const; |
| 157 | 157 |
| 158 DISALLOW_COPY_AND_ASSIGN(RasterSource); | 158 DISALLOW_COPY_AND_ASSIGN(RasterSource); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace cc | 161 } // namespace cc |
| 162 | 162 |
| 163 #endif // CC_PLAYBACK_RASTER_SOURCE_H_ | 163 #endif // CC_RASTER_RASTER_SOURCE_H_ |
| OLD | NEW |