| 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 ContentLayerClient* painter, | 22 ContentLayerClient* painter, |
| 23 Region* invalidation, | 23 Region* invalidation, |
| 24 bool can_use_lcd_text, | 24 bool can_use_lcd_text, |
| 25 const gfx::Size& layer_size, | 25 const gfx::Size& layer_size, |
| 26 const gfx::Rect& visible_layer_rect, | 26 const gfx::Rect& visible_layer_rect, |
| 27 int frame_number, | 27 int frame_number, |
| 28 Picture::RecordingMode recording_mode) override; | 28 Picture::RecordingMode recording_mode) override; |
| 29 scoped_refptr<RasterSource> CreateRasterSource() const override; | 29 scoped_refptr<RasterSource> CreateRasterSource() const override; |
| 30 gfx::Size GetSize() const final; | 30 gfx::Size GetSize() const final; |
| 31 void SetEmptyBounds() override; | 31 void SetEmptyBounds() override; |
| 32 void SetMinContentsScale(float min_contents_scale) override; | |
| 33 void SetSlowdownRasterScaleFactor(int factor) override; | 32 void SetSlowdownRasterScaleFactor(int factor) override; |
| 34 bool IsSuitableForGpuRasterization() const override; | 33 bool IsSuitableForGpuRasterization() const override; |
| 35 void SetTileGridSize(const gfx::Size& tile_grid_size) override; | |
| 36 void SetUnsuitableForGpuRasterizationForTesting() override; | 34 void SetUnsuitableForGpuRasterizationForTesting() override; |
| 37 gfx::Size GetTileGridSizeForTesting() const override; | 35 gfx::Size GetTileGridSizeForTesting() const override; |
| 38 | 36 |
| 39 protected: | 37 protected: |
| 40 void Clear(); | 38 void Clear(); |
| 41 | 39 |
| 42 gfx::Rect recorded_viewport_; | 40 gfx::Rect recorded_viewport_; |
| 43 gfx::Size size_; | 41 gfx::Size size_; |
| 44 int slow_down_raster_scale_factor_for_debug_; | 42 int slow_down_raster_scale_factor_for_debug_; |
| 45 bool can_use_lcd_text_; | 43 bool can_use_lcd_text_; |
| 46 bool is_solid_color_; | 44 bool is_solid_color_; |
| 47 SkColor solid_color_; | 45 SkColor solid_color_; |
| 48 int pixel_record_distance_; | 46 int pixel_record_distance_; |
| 49 | 47 |
| 50 scoped_refptr<DisplayItemList> display_list_; | 48 scoped_refptr<DisplayItemList> display_list_; |
| 51 | 49 |
| 52 private: | 50 private: |
| 53 friend class DisplayListRasterSource; | 51 friend class DisplayListRasterSource; |
| 54 | 52 |
| 55 void DetermineIfSolidColor(); | 53 void DetermineIfSolidColor(); |
| 56 | 54 |
| 57 bool is_suitable_for_gpu_rasterization_; | 55 bool is_suitable_for_gpu_rasterization_; |
| 58 | 56 |
| 59 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); | 57 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); |
| 60 }; | 58 }; |
| 61 | 59 |
| 62 } // namespace cc | 60 } // namespace cc |
| 63 | 61 |
| 64 #endif // CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ | 62 #endif // CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| OLD | NEW |