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

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
« no previous file with comments | « cc/playback/discardable_image_map_unittest.cc ('k') | cc/playback/display_list_recording_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..603924f070c45a97ccbebc6a37b0ef9fd699aeb0 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:
@@ -73,12 +66,15 @@ class CC_EXPORT DisplayListRecordingSource {
bool clear_canvas_with_debug_color_;
SkColor solid_color_;
SkColor background_color_;
- int pixel_record_distance_;
scoped_refptr<DisplayItemList> display_list_;
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();
« no previous file with comments | « cc/playback/discardable_image_map_unittest.cc ('k') | cc/playback/display_list_recording_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698