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

Unified Diff: cc/layers/picture_layer.cc

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/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index 0b92ff4a9d8a432eecfe8b6fa7335a24a0ddcb4e..bea6b0094c113676d310946d836170231284b8d2 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -150,7 +150,8 @@ bool PictureLayer::Update() {
DCHECK(client_);
updated |= recording_source_->UpdateAndExpandInvalidation(
client_, &recording_invalidation_, layer_size, update_rect,
- update_source_frame_number_, DisplayListRecordingSource::RECORD_NORMALLY);
+ update_source_frame_number_, DisplayListRecordingSource::RECORD_NORMALLY,
+ layer_tree_host()->settings().blink_synchronized_painting_enabled);
last_updated_visible_layer_rect_ = visible_layer_rect();
if (updated) {
@@ -181,7 +182,8 @@ skia::RefPtr<SkPicture> PictureLayer::GetPicture() const {
Region recording_invalidation;
recording_source->UpdateAndExpandInvalidation(
client_, &recording_invalidation, layer_size, gfx::Rect(layer_size),
- update_source_frame_number_, DisplayListRecordingSource::RECORD_NORMALLY);
+ update_source_frame_number_, DisplayListRecordingSource::RECORD_NORMALLY,
+ layer_tree_host()->settings().blink_synchronized_painting_enabled);
scoped_refptr<DisplayListRasterSource> raster_source =
recording_source->CreateRasterSource(false);

Powered by Google App Engine
This is Rietveld 408576698