Index: cc/playback/display_list_recording_source.h |
diff --git a/cc/playback/display_list_recording_source.h b/cc/playback/display_list_recording_source.h |
index 4a19cbe219d8485e6ff978c9ee97e26a6838f496..44904d4cb6678b830d1fc5e39bc990dfe8adc436 100644 |
--- a/cc/playback/display_list_recording_source.h |
+++ b/cc/playback/display_list_recording_source.h |
@@ -52,13 +52,6 @@ class CC_EXPORT DisplayListRecordingSource { |
bool can_use_lcd_text) const; |
virtual bool IsSuitableForGpuRasterization() const; |
- // Returns true if the new recorded viewport exposes enough new area to be |
- // worth re-recording. |
- static bool ExposesEnoughNewArea( |
- const gfx::Rect& current_recorded_viewport, |
- const gfx::Rect& potential_new_recorded_viewport, |
- const gfx::Size& layer_size); |
- |
gfx::Rect recorded_viewport() const { return recorded_viewport_; } |
protected: |
@@ -79,6 +72,10 @@ class CC_EXPORT DisplayListRecordingSource { |
size_t painter_reported_memory_usage_; |
private: |
+ void UpdateInvalidationForNewViewport(const gfx::Rect& old_recorded_viewport, |
+ const gfx::Rect& new_recorded_viewport, |
+ Region* invalidation); |
+ |
friend class DisplayListRasterSource; |
void DetermineIfSolidColor(); |