| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 !prefs.antialiased_2d_canvas_disabled); | 236 !prefs.antialiased_2d_canvas_disabled); |
| 237 | 237 |
| 238 // Set MSAA sample count for 2d canvas if requested on the command line (or | 238 // Set MSAA sample count for 2d canvas if requested on the command line (or |
| 239 // default value if not). | 239 // default value if not). |
| 240 settings->setAccelerated2dCanvasMSAASampleCount( | 240 settings->setAccelerated2dCanvasMSAASampleCount( |
| 241 prefs.accelerated_2d_canvas_msaa_sample_count); | 241 prefs.accelerated_2d_canvas_msaa_sample_count); |
| 242 | 242 |
| 243 // Enable gpu-accelerated filters if requested on the command line. | 243 // Enable gpu-accelerated filters if requested on the command line. |
| 244 settings->setAcceleratedFiltersEnabled(prefs.accelerated_filters_enabled); | 244 settings->setAcceleratedFiltersEnabled(prefs.accelerated_filters_enabled); |
| 245 | 245 |
| 246 // Enable deferred filter rendering if requested on the command line. |
| 247 settings->setDeferredFiltersEnabled(prefs.deferred_filters_enabled); |
| 248 |
| 246 // Enable gesture tap highlight if requested on the command line. | 249 // Enable gesture tap highlight if requested on the command line. |
| 247 settings->setGestureTapHighlightEnabled(prefs.gesture_tap_highlight_enabled); | 250 settings->setGestureTapHighlightEnabled(prefs.gesture_tap_highlight_enabled); |
| 248 | 251 |
| 249 // Enabling accelerated layers from the command line enabled accelerated | 252 // Enabling accelerated layers from the command line enabled accelerated |
| 250 // 3D CSS, Video, and Animations. | 253 // 3D CSS, Video, and Animations. |
| 251 settings->setAcceleratedCompositingFor3DTransformsEnabled( | 254 settings->setAcceleratedCompositingFor3DTransformsEnabled( |
| 252 prefs.accelerated_compositing_for_3d_transforms_enabled); | 255 prefs.accelerated_compositing_for_3d_transforms_enabled); |
| 253 settings->setAcceleratedCompositingForVideoEnabled( | 256 settings->setAcceleratedCompositingForVideoEnabled( |
| 254 prefs.accelerated_compositing_for_video_enabled); | 257 prefs.accelerated_compositing_for_video_enabled); |
| 255 settings->setAcceleratedCompositingForAnimationEnabled( | 258 settings->setAcceleratedCompositingForAnimationEnabled( |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 settings->setPinchVirtualViewportEnabled( | 376 settings->setPinchVirtualViewportEnabled( |
| 374 prefs.pinch_virtual_viewport_enabled); | 377 prefs.pinch_virtual_viewport_enabled); |
| 375 | 378 |
| 376 settings->setPinchOverlayScrollbarThickness( | 379 settings->setPinchOverlayScrollbarThickness( |
| 377 prefs.pinch_overlay_scrollbar_thickness); | 380 prefs.pinch_overlay_scrollbar_thickness); |
| 378 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 381 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
| 379 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); | 382 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
| 380 } | 383 } |
| 381 | 384 |
| 382 } // namespace content | 385 } // namespace content |
| OLD | NEW |