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

Unified Diff: cc/trees/layer_tree_host.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 | « cc/trees/layer_tree_host.h ('k') | chrome/browser/ui/views/autofill/card_unmask_prompt_views.h » ('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 7c5941af90e53a031f1c8680069d8ba4b8a36bc5..78865db1743acd6a28d0142656221f117bf9916e 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -1037,6 +1037,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;
+}
+
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') | chrome/browser/ui/views/autofill/card_unmask_prompt_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698