| 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/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 DisplayListRecordingSource(); | 34 DisplayListRecordingSource(); |
| 35 virtual ~DisplayListRecordingSource(); | 35 virtual ~DisplayListRecordingSource(); |
| 36 | 36 |
| 37 bool UpdateAndExpandInvalidation(ContentLayerClient* painter, | 37 bool UpdateAndExpandInvalidation(ContentLayerClient* painter, |
| 38 Region* invalidation, | 38 Region* invalidation, |
| 39 const gfx::Size& layer_size, | 39 const gfx::Size& layer_size, |
| 40 const gfx::Rect& visible_layer_rect, | 40 const gfx::Rect& visible_layer_rect, |
| 41 int frame_number, | 41 int frame_number, |
| 42 RecordingMode recording_mode); | 42 RecordingMode recording_mode, |
| 43 bool blink_synchronized_painting_enabled); |
| 43 gfx::Size GetSize() const; | 44 gfx::Size GetSize() const; |
| 44 void SetEmptyBounds(); | 45 void SetEmptyBounds(); |
| 45 void SetSlowdownRasterScaleFactor(int factor); | 46 void SetSlowdownRasterScaleFactor(int factor); |
| 46 void SetGenerateDiscardableImagesMetadata(bool generate_metadata); | 47 void SetGenerateDiscardableImagesMetadata(bool generate_metadata); |
| 47 void SetBackgroundColor(SkColor background_color); | 48 void SetBackgroundColor(SkColor background_color); |
| 48 void SetRequiresClear(bool requires_clear); | 49 void SetRequiresClear(bool requires_clear); |
| 49 | 50 |
| 50 // These functions are virtual for testing. | 51 // These functions are virtual for testing. |
| 51 virtual scoped_refptr<DisplayListRasterSource> CreateRasterSource( | 52 virtual scoped_refptr<DisplayListRasterSource> CreateRasterSource( |
| 52 bool can_use_lcd_text) const; | 53 bool can_use_lcd_text) const; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 82 friend class DisplayListRasterSource; | 83 friend class DisplayListRasterSource; |
| 83 | 84 |
| 84 void DetermineIfSolidColor(); | 85 void DetermineIfSolidColor(); |
| 85 | 86 |
| 86 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); | 87 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // namespace cc | 90 } // namespace cc |
| 90 | 91 |
| 91 #endif // CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ | 92 #endif // CC_PLAYBACK_DISPLAY_LIST_RECORDING_SOURCE_H_ |
| OLD | NEW |