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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 deferred filter rendering if requested on the command line. | 231 // Enable deferred filter rendering if requested on the command line. |
232 settings->setDeferredFiltersEnabled(prefs.deferred_filters_enabled); | 232 settings->setDeferredFiltersEnabled(prefs.deferred_filters_enabled); |
233 | 233 |
| 234 // Enable container culling if requested on the command line. |
| 235 settings->setContainerCullingEnabled(prefs.container_culling_enabled); |
| 236 |
234 // Enable gesture tap highlight if requested on the command line. | 237 // Enable gesture tap highlight if requested on the command line. |
235 settings->setGestureTapHighlightEnabled(prefs.gesture_tap_highlight_enabled); | 238 settings->setGestureTapHighlightEnabled(prefs.gesture_tap_highlight_enabled); |
236 | 239 |
237 // Enabling accelerated layers from the command line enabled accelerated | 240 // Enabling accelerated layers from the command line enabled accelerated |
238 // 3D CSS, Video, and Animations. | 241 // 3D CSS, Video, and Animations. |
239 settings->setAcceleratedCompositingFor3DTransformsEnabled( | 242 settings->setAcceleratedCompositingFor3DTransformsEnabled( |
240 prefs.accelerated_compositing_for_3d_transforms_enabled); | 243 prefs.accelerated_compositing_for_3d_transforms_enabled); |
241 settings->setAcceleratedCompositingForVideoEnabled( | 244 settings->setAcceleratedCompositingForVideoEnabled( |
242 prefs.accelerated_compositing_for_video_enabled); | 245 prefs.accelerated_compositing_for_video_enabled); |
243 settings->setAcceleratedCompositingForAnimationEnabled( | 246 settings->setAcceleratedCompositingForAnimationEnabled( |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 settings->setPinchVirtualViewportEnabled( | 359 settings->setPinchVirtualViewportEnabled( |
357 prefs.pinch_virtual_viewport_enabled); | 360 prefs.pinch_virtual_viewport_enabled); |
358 | 361 |
359 settings->setPinchOverlayScrollbarThickness( | 362 settings->setPinchOverlayScrollbarThickness( |
360 prefs.pinch_overlay_scrollbar_thickness); | 363 prefs.pinch_overlay_scrollbar_thickness); |
361 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); | 364 settings->setUseSolidColorScrollbars(prefs.use_solid_color_scrollbars); |
362 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); | 365 settings->setCompositorTouchHitTesting(prefs.compositor_touch_hit_testing); |
363 } | 366 } |
364 | 367 |
365 } // namespace content | 368 } // namespace content |
OLD | NEW |