| 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_RASTER_RASTER_SOURCE_H_ | 5 #ifndef CC_RASTER_RASTER_SOURCE_H_ |
| 6 #define CC_RASTER_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> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 const scoped_refptr<DisplayItemList> display_list_; | 129 const scoped_refptr<DisplayItemList> display_list_; |
| 130 const size_t painter_reported_memory_usage_; | 130 const size_t painter_reported_memory_usage_; |
| 131 const SkColor background_color_; | 131 const SkColor background_color_; |
| 132 const bool requires_clear_; | 132 const bool requires_clear_; |
| 133 const bool is_solid_color_; | 133 const bool is_solid_color_; |
| 134 const SkColor solid_color_; | 134 const SkColor solid_color_; |
| 135 const gfx::Rect recorded_viewport_; | 135 const gfx::Rect recorded_viewport_; |
| 136 const gfx::Size size_; | 136 const gfx::Size size_; |
| 137 const bool clear_canvas_with_debug_color_; | 137 const bool clear_canvas_with_debug_color_; |
| 138 const int slow_down_raster_scale_factor_for_debug_; | 138 const int slow_down_raster_scale_factor_for_debug_; |
| 139 const float recording_scale_factor_; |
| 139 | 140 |
| 140 private: | 141 private: |
| 141 void RasterCommon(SkCanvas* canvas, | 142 void RasterCommon(SkCanvas* canvas, |
| 142 ImageProvider* image_provider = nullptr, | 143 ImageProvider* image_provider = nullptr, |
| 143 SkPicture::AbortCallback* callback = nullptr) const; | 144 SkPicture::AbortCallback* callback = nullptr) const; |
| 144 | 145 |
| 145 void PrepareForPlaybackToCanvas(SkCanvas* canvas) const; | 146 void PrepareForPlaybackToCanvas(SkCanvas* canvas) const; |
| 146 | 147 |
| 147 DISALLOW_COPY_AND_ASSIGN(RasterSource); | 148 DISALLOW_COPY_AND_ASSIGN(RasterSource); |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 } // namespace cc | 151 } // namespace cc |
| 151 | 152 |
| 152 #endif // CC_RASTER_RASTER_SOURCE_H_ | 153 #endif // CC_RASTER_RASTER_SOURCE_H_ |
| OLD | NEW |