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

Unified Diff: cc/layers/picture_layer.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 months 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 | « ash/wm/drag_window_controller.cc ('k') | cc/layers/recording_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.cc
diff --git a/cc/layers/picture_layer.cc b/cc/layers/picture_layer.cc
index fd889200ca9717ae156020d07e3837b22abcb5a3..a58bcd77ff8dd861589f9385bb545682d6ab5fef 100644
--- a/cc/layers/picture_layer.cc
+++ b/cc/layers/picture_layer.cc
@@ -130,6 +130,9 @@ bool PictureLayer::Update() {
recording_source_->UpdateDisplayItemList(
picture_layer_inputs_.display_list,
picture_layer_inputs_.painter_reported_memory_usage);
+ recording_source_->SetRecordingScaleFactor(
+ layer_tree_host()->recording_scale_factor());
+
SetNeedsPushProperties();
} else {
// If this invalidation did not affect the recording source, then it can be
« no previous file with comments | « ash/wm/drag_window_controller.cc ('k') | cc/layers/recording_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698