Index: content/renderer/render_view_impl.cc |
=================================================================== |
--- content/renderer/render_view_impl.cc (revision 159486) |
+++ content/renderer/render_view_impl.cc (working copy) |
@@ -3147,6 +3147,8 @@ |
command_line.HasSwitch(switches::kEnableFixedLayout); |
bool enable_pinch = enable_viewport || |
command_line.HasSwitch(switches::kEnablePinch); |
+ bool enable_pinch_in_compositor = |
+ command_line.HasSwitch(switches::kEnablePinchInCompositor); |
webview()->enableFixedLayoutMode(enable_fixed_layout || enable_viewport); |
webview()->settings()->setFixedElementsLayoutRelativeToFrame(true); |
@@ -3159,6 +3161,10 @@ |
webview()->setPageScaleFactorLimits(1, 1); |
} |
+ if (enable_pinch_in_compositor && |
+ webview()->isAcceleratedCompositingActive()) |
+ webview()->setPageScaleFactorLimits(1, 4); |
+ |
if (enable_viewport) { |
webview()->settings()->setViewportEnabled(true); |
} else if (enable_fixed_layout) { |