| 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_RECORDING_SOURCE_H_ | 5 #ifndef CC_PLAYBACK_RECORDING_SOURCE_H_ |
| 6 #define CC_PLAYBACK_RECORDING_SOURCE_H_ | 6 #define CC_PLAYBACK_RECORDING_SOURCE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void SetBackgroundColor(SkColor background_color); | 61 void SetBackgroundColor(SkColor background_color); |
| 62 void SetRequiresClear(bool requires_clear); | 62 void SetRequiresClear(bool requires_clear); |
| 63 | 63 |
| 64 void SetNeedsDisplayRect(const gfx::Rect& layer_rect); | 64 void SetNeedsDisplayRect(const gfx::Rect& layer_rect); |
| 65 | 65 |
| 66 // These functions are virtual for testing. | 66 // These functions are virtual for testing. |
| 67 virtual scoped_refptr<RasterSource> CreateRasterSource( | 67 virtual scoped_refptr<RasterSource> CreateRasterSource( |
| 68 bool can_use_lcd_text) const; | 68 bool can_use_lcd_text) const; |
| 69 | 69 |
| 70 const DisplayItemList* GetDisplayItemList(); | 70 const DisplayItemList* GetDisplayItemList(); |
| 71 gfx::Rect recorded_viewport() const { return recorded_viewport_; } |
| 71 | 72 |
| 72 protected: | 73 protected: |
| 73 gfx::Rect recorded_viewport_; | 74 gfx::Rect recorded_viewport_; |
| 74 gfx::Size size_; | 75 gfx::Size size_; |
| 75 int slow_down_raster_scale_factor_for_debug_; | 76 int slow_down_raster_scale_factor_for_debug_; |
| 76 bool generate_discardable_images_metadata_; | 77 bool generate_discardable_images_metadata_; |
| 77 bool requires_clear_; | 78 bool requires_clear_; |
| 78 bool is_solid_color_; | 79 bool is_solid_color_; |
| 79 bool clear_canvas_with_debug_color_; | 80 bool clear_canvas_with_debug_color_; |
| 80 SkColor solid_color_; | 81 SkColor solid_color_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 94 void DetermineIfSolidColor(); | 95 void DetermineIfSolidColor(); |
| 95 | 96 |
| 96 InvalidationRegion invalidation_; | 97 InvalidationRegion invalidation_; |
| 97 | 98 |
| 98 DISALLOW_COPY_AND_ASSIGN(RecordingSource); | 99 DISALLOW_COPY_AND_ASSIGN(RecordingSource); |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace cc | 102 } // namespace cc |
| 102 | 103 |
| 103 #endif // CC_PLAYBACK_RECORDING_SOURCE_H_ | 104 #endif // CC_PLAYBACK_RECORDING_SOURCE_H_ |
| OLD | NEW |