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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

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: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index c684a3726600f88c53f1746928f0cb2334ecfa1e..7ca7e226b06e0637602e7d8945ee33884349300b 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -621,7 +621,10 @@ WebFloatPoint RenderWidgetCompositor::adjustEventPointForPinchZoom(
}
void RenderWidgetCompositor::setDeviceScaleFactor(float device_scale) {
- layer_tree_host_->SetDeviceScaleFactor(device_scale);
+ if (IsUseZoomForDSFEnabled())
+ layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
danakj 2015/10/22 23:15:29 I think maybe you want a separate function in RWC
oshima 2015/10/23 18:05:36 This is called from mulitple places, RenderWidge
piman 2015/10/23 19:30:33 I kinda agree with Dana. WebViewImpl (and others)
enne (OOO) 2015/10/23 21:21:25 Agreed here as well.
oshima 2015/10/23 22:05:02 How about letting WebWidgetClient set the device s
oshima 2015/10/30 17:35:38 This change wasn't actually necessary. I changed t
+ else
+ layer_tree_host_->SetDeviceScaleFactor(device_scale);
}
void RenderWidgetCompositor::setBackgroundColor(blink::WebColor color) {

Powered by Google App Engine
This is Rietveld 408576698