| 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_DISPLAY_LIST_RECORDING_SOURCE_H_ | 5 #ifndef CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| 6 #define CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ | 6 #define CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/playback/recording_source.h" | 9 #include "cc/playback/recording_source.h" |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 protected: | 39 protected: |
| 40 void Clear(); | 40 void Clear(); |
| 41 | 41 |
| 42 gfx::Rect recorded_viewport_; | 42 gfx::Rect recorded_viewport_; |
| 43 gfx::Size size_; | 43 gfx::Size size_; |
| 44 int slow_down_raster_scale_factor_for_debug_; | 44 int slow_down_raster_scale_factor_for_debug_; |
| 45 bool gather_pixel_refs_; | 45 bool gather_pixel_refs_; |
| 46 bool requires_clear_; | 46 bool requires_clear_; |
| 47 bool is_solid_color_; | 47 bool is_solid_color_; |
| 48 bool clear_canvas_with_debug_color_; |
| 48 SkColor solid_color_; | 49 SkColor solid_color_; |
| 49 SkColor background_color_; | 50 SkColor background_color_; |
| 50 int pixel_record_distance_; | 51 int pixel_record_distance_; |
| 51 gfx::Size grid_cell_size_; | 52 gfx::Size grid_cell_size_; |
| 52 | 53 |
| 53 scoped_refptr<DisplayItemList> display_list_; | 54 scoped_refptr<DisplayItemList> display_list_; |
| 54 | 55 |
| 55 private: | 56 private: |
| 56 friend class DisplayListRasterSource; | 57 friend class DisplayListRasterSource; |
| 57 | 58 |
| 58 void DetermineIfSolidColor(); | 59 void DetermineIfSolidColor(); |
| 59 | 60 |
| 60 bool is_suitable_for_gpu_rasterization_; | 61 bool is_suitable_for_gpu_rasterization_; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); | 63 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace cc | 66 } // namespace cc |
| 66 | 67 |
| 67 #endif // CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ | 68 #endif // CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| OLD | NEW |