| 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_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ | 5 #ifndef CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| 6 #define CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ | 6 #define CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/resources/recording_source.h" | 9 #include "cc/resources/recording_source.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 Region* invalidation, | 22 Region* invalidation, |
| 23 bool can_use_lcd_text, | 23 bool can_use_lcd_text, |
| 24 const gfx::Size& layer_size, | 24 const gfx::Size& layer_size, |
| 25 const gfx::Rect& visible_layer_rect, | 25 const gfx::Rect& visible_layer_rect, |
| 26 int frame_number, | 26 int frame_number, |
| 27 RecordingMode recording_mode) override; | 27 RecordingMode recording_mode) override; |
| 28 scoped_refptr<RasterSource> CreateRasterSource() const override; | 28 scoped_refptr<RasterSource> CreateRasterSource() const override; |
| 29 gfx::Size GetSize() const final; | 29 gfx::Size GetSize() const final; |
| 30 void SetEmptyBounds() override; | 30 void SetEmptyBounds() override; |
| 31 void SetSlowdownRasterScaleFactor(int factor) override; | 31 void SetSlowdownRasterScaleFactor(int factor) override; |
| 32 void SetBackgroundColor(SkColor background_color) override; |
| 33 void SetRequiresClear(bool requires_clear) override; |
| 32 bool IsSuitableForGpuRasterization() const override; | 34 bool IsSuitableForGpuRasterization() const override; |
| 33 void SetUnsuitableForGpuRasterizationForTesting() override; | 35 void SetUnsuitableForGpuRasterizationForTesting() override; |
| 34 gfx::Size GetTileGridSizeForTesting() const override; | 36 gfx::Size GetTileGridSizeForTesting() const override; |
| 35 | 37 |
| 36 protected: | 38 protected: |
| 37 void Clear(); | 39 void Clear(); |
| 38 | 40 |
| 39 gfx::Rect recorded_viewport_; | 41 gfx::Rect recorded_viewport_; |
| 40 gfx::Size size_; | 42 gfx::Size size_; |
| 41 int slow_down_raster_scale_factor_for_debug_; | 43 int slow_down_raster_scale_factor_for_debug_; |
| 42 bool can_use_lcd_text_; | 44 bool can_use_lcd_text_; |
| 45 bool requires_clear_; |
| 43 bool is_solid_color_; | 46 bool is_solid_color_; |
| 44 SkColor solid_color_; | 47 SkColor solid_color_; |
| 48 SkColor background_color_; |
| 45 int pixel_record_distance_; | 49 int pixel_record_distance_; |
| 46 | 50 |
| 47 scoped_refptr<DisplayItemList> display_list_; | 51 scoped_refptr<DisplayItemList> display_list_; |
| 48 | 52 |
| 49 private: | 53 private: |
| 50 friend class DisplayListRasterSource; | 54 friend class DisplayListRasterSource; |
| 51 | 55 |
| 52 void DetermineIfSolidColor(); | 56 void DetermineIfSolidColor(); |
| 53 | 57 |
| 54 bool is_suitable_for_gpu_rasterization_; | 58 bool is_suitable_for_gpu_rasterization_; |
| 55 | 59 |
| 56 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); | 60 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 } // namespace cc | 63 } // namespace cc |
| 60 | 64 |
| 61 #endif // CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ | 65 #endif // CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| OLD | NEW |