OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/renderer/web_preferences.h" | 5 #include "content/public/renderer/web_preferences.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "third_party/WebKit/public/platform/WebString.h" | 8 #include "third_party/WebKit/public/platform/WebString.h" |
9 #include "third_party/WebKit/public/platform/WebURL.h" | 9 #include "third_party/WebKit/public/platform/WebURL.h" |
10 #include "third_party/WebKit/public/web/WebKit.h" | 10 #include "third_party/WebKit/public/web/WebKit.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 // Disable antialiasing for 2d canvas if requested on the command line. | 222 // Disable antialiasing for 2d canvas if requested on the command line. |
223 settings->setAntialiased2dCanvasEnabled( | 223 settings->setAntialiased2dCanvasEnabled( |
224 !prefs.antialiased_2d_canvas_disabled); | 224 !prefs.antialiased_2d_canvas_disabled); |
225 | 225 |
226 // Set MSAA sample count for 2d canvas if requested on the command line (or | 226 // Set MSAA sample count for 2d canvas if requested on the command line (or |
227 // default value if not). | 227 // default value if not). |
228 settings->setAccelerated2dCanvasMSAASampleCount( | 228 settings->setAccelerated2dCanvasMSAASampleCount( |
229 prefs.accelerated_2d_canvas_msaa_sample_count); | 229 prefs.accelerated_2d_canvas_msaa_sample_count); |
230 | 230 |
231 // Enable gpu-accelerated filters if requested on the command line. | |
232 settings->setAcceleratedFiltersEnabled(prefs.accelerated_filters_enabled); | |
233 | |
234 // Enable deferred filter rendering if requested on the command line. | 231 // Enable deferred filter rendering if requested on the command line. |
235 settings->setDeferredFiltersEnabled(prefs.deferred_filters_enabled); | 232 settings->setDeferredFiltersEnabled(prefs.deferred_filters_enabled); |
236 | 233 |
237 // Enable gesture tap highlight if requested on the command line. | 234 // Enable gesture tap highlight if requested on the command line. |
238 settings->setGestureTapHighlightEnabled(prefs.gesture_tap_highlight_enabled); | 235 settings->setGestureTapHighlightEnabled(prefs.gesture_tap_highlight_enabled); |
239 | 236 |
240 // Enabling accelerated layers from the command line enabled accelerated | 237 // Enabling accelerated layers from the command line enabled accelerated |
241 // 3D CSS, Video, and Animations. | 238 // 3D CSS, Video, and Animations. |
242 settings->setAcceleratedCompositingFor3DTransformsEnabled( | 239 settings->setAcceleratedCompositingFor3DTransformsEnabled( |
243 prefs.accelerated_compositing_for_3d_transforms_enabled); | 240 prefs.accelerated_compositing_for_3d_transforms_enabled); |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 settings->setPinchVirtualViewportEnabled( | 359 settings->setPinchVirtualViewportEnabled( |
363 prefs.pinch_virtual_viewport_enabled); | 360 prefs.pinch_virtual_viewport_enabled); |
364 | 361 |
365 settings->setPinchOverlayScrollbarThickness( | 362 settings->setPinchOverlayScrollbarThickness( |
366 prefs.pinch_overlay_scrollbar_thickness); | 363 prefs.pinch_overlay_scrollbar_thickness); |
367 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 364 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
368 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); | 365 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
369 } | 366 } |
370 | 367 |
371 } // namespace content | 368 } // namespace content |
OLD | NEW |