Chromium Code Reviews| 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) { |