Chromium Code Reviews| Index: cc/playback/recording_source.h |
| diff --git a/cc/playback/recording_source.h b/cc/playback/recording_source.h |
| index 36d0511d358ab2662128f4768900e722e9170d83..892948e0ca082624b0fe5fa990d246dcf0a37a5a 100644 |
| --- a/cc/playback/recording_source.h |
| +++ b/cc/playback/recording_source.h |
| @@ -70,14 +70,13 @@ class CC_EXPORT RecordingSource { |
| bool can_use_lcd_text) const; |
| virtual bool IsSuitableForGpuRasterization() const; |
| - gfx::Rect recorded_viewport() const { return recorded_viewport_; } |
| + gfx::Rect recorded_viewport() const { return inputs_.recorded_viewport; } |
| const DisplayItemList* GetDisplayItemList(); |
| protected: |
| void Clear(); |
| - gfx::Rect recorded_viewport_; |
| gfx::Size size_; |
| int slow_down_raster_scale_factor_for_debug_; |
| bool generate_discardable_images_metadata_; |
| @@ -87,8 +86,17 @@ class CC_EXPORT RecordingSource { |
| SkColor solid_color_; |
| SkColor background_color_; |
| - scoped_refptr<DisplayItemList> display_list_; |
| - size_t painter_reported_memory_usage_; |
| + // Encapsulates all data received from the ContentLayerClient. |
| + struct Inputs { |
| + Inputs(); |
|
Khushal
2016/07/12 23:28:19
You can inline the initialization and remove the c
Menglin
2016/07/12 23:36:47
that's what i did but got the "Complex class/struc
danakj
2016/07/12 23:39:42
Then you can inline the initialization and just =
|
| + ~Inputs(); |
| + |
| + gfx::Rect recorded_viewport; |
| + scoped_refptr<DisplayItemList> display_list; |
| + size_t painter_reported_memory_usage; |
| + }; |
| + |
| + Inputs inputs_; |
| private: |
| void UpdateInvalidationForNewViewport(const gfx::Rect& old_recorded_viewport, |