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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Adds RasterSource Unittest Created 3 years, 5 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 | « cc/trees/layer_tree_host.h ('k') | ui/compositor/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 3ab29fa0e247b276d8b259eccf1e82c1185b4e84..953004e7e8ed000383be5bdbd79b200b11b007b9 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -1085,6 +1085,12 @@ void LayerTreeHost::SetDeviceScaleFactor(float device_scale_factor) {
SetNeedsCommit();
}
+void LayerTreeHost::SetRecordingScaleFactor(float recording_scale_factor) {
+ if (recording_scale_factor_ == recording_scale_factor)
+ return;
+ recording_scale_factor_ = recording_scale_factor;
vmpstr 2017/07/10 16:20:34 nit: I think we might need a SetNeedsCommit here.
malaykeshav 2017/07/10 18:03:53 The value is not synced to the LayerTreeImpl. Does
vmpstr 2017/07/10 18:06:26 Oh you're right, it's just set on the recording so
+}
+
void LayerTreeHost::SetPaintedDeviceScaleFactor(
float painted_device_scale_factor) {
if (painted_device_scale_factor_ == painted_device_scale_factor)
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | ui/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698