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

Unified Diff: cc/trees/layer_tree_host.h

Issue 1412663005: Introduce painted-device-scale-factor and use it when --enable-use-zoom-for-dsf is specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | cc/trees/layer_tree_host.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index ab38aba16fdea413981fc9b60ae1291c37ee66af..3f6b533609cf237a4ee3ebeb746703a4c2205ea5 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -238,6 +238,8 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
void SetImplTransform(const gfx::Transform& transform);
void SetDeviceScaleFactor(float device_scale_factor);
+ void SetPaintedDeviceScaleFactor(float painted_device_scale_factor);
+
float device_scale_factor() const { return device_scale_factor_; }
void UpdateTopControlsState(TopControlsState constraints,
@@ -443,6 +445,7 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
float top_controls_height_;
float top_controls_shown_ratio_;
float device_scale_factor_;
+ float painted_device_scale_factor_;
bool visible_;
« no previous file with comments | « no previous file | cc/trees/layer_tree_host.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698