Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2788)

Unified Diff: cc/playback/display_list_recording_source.h

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698