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

Unified Diff: cc/trees/layer_tree_impl.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
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 6d544387ff94b6667ecb4d17b4bf82b98c1d55b7..e8257b1df66089eba6fc88c8133608acd8795511 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -199,6 +199,13 @@ class CC_EXPORT LayerTreeImpl {
void SetDeviceScaleFactor(float device_scale_factor);
float device_scale_factor() const { return device_scale_factor_; }
+ void set_painted_device_scale_factor(float painted_device_scale_factor) {
+ painted_device_scale_factor_ = painted_device_scale_factor;
+ }
+ float painted_device_scale_factor() const {
+ return painted_device_scale_factor_;
+ }
+
SyncedElasticOverscroll* elastic_overscroll() {
return elastic_overscroll_.get();
}
@@ -438,6 +445,7 @@ class CC_EXPORT LayerTreeImpl {
float max_page_scale_factor_;
float device_scale_factor_;
+ float painted_device_scale_factor_;
scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_;

Powered by Google App Engine
This is Rietveld 408576698