OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 | 413 |
414 prefs.accelerated_2d_canvas_enabled = | 414 prefs.accelerated_2d_canvas_enabled = |
415 GpuProcessHost::gpu_enabled() && | 415 GpuProcessHost::gpu_enabled() && |
416 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); | 416 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); |
417 prefs.antialiased_2d_canvas_disabled = | 417 prefs.antialiased_2d_canvas_disabled = |
418 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); | 418 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); |
419 prefs.accelerated_2d_canvas_msaa_sample_count = | 419 prefs.accelerated_2d_canvas_msaa_sample_count = |
420 atoi(command_line.GetSwitchValueASCII( | 420 atoi(command_line.GetSwitchValueASCII( |
421 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); | 421 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); |
422 prefs.deferred_filters_enabled = | 422 prefs.deferred_filters_enabled = |
423 command_line.HasSwitch(switches::kEnableDeferredFilters); | 423 !command_line.HasSwitch(switches::kDisableDeferredFilters); |
424 prefs.container_culling_enabled = | 424 prefs.container_culling_enabled = |
425 command_line.HasSwitch(switches::kEnableContainerCulling); | 425 command_line.HasSwitch(switches::kEnableContainerCulling); |
426 prefs.lazy_layout_enabled = | 426 prefs.lazy_layout_enabled = |
427 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); | 427 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); |
428 prefs.region_based_columns_enabled = | 428 prefs.region_based_columns_enabled = |
429 command_line.HasSwitch(switches::kEnableRegionBasedColumns); | 429 command_line.HasSwitch(switches::kEnableRegionBasedColumns); |
430 | 430 |
431 if (IsPinchVirtualViewportEnabled()) { | 431 if (IsPinchVirtualViewportEnabled()) { |
432 prefs.pinch_virtual_viewport_enabled = true; | 432 prefs.pinch_virtual_viewport_enabled = true; |
433 prefs.pinch_overlay_scrollbar_thickness = 10; | 433 prefs.pinch_overlay_scrollbar_thickness = 10; |
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1732 return true; | 1732 return true; |
1733 } | 1733 } |
1734 | 1734 |
1735 void RenderViewHostImpl::AttachToFrameTree() { | 1735 void RenderViewHostImpl::AttachToFrameTree() { |
1736 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1736 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1737 | 1737 |
1738 frame_tree->ResetForMainFrameSwap(); | 1738 frame_tree->ResetForMainFrameSwap(); |
1739 } | 1739 } |
1740 | 1740 |
1741 } // namespace content | 1741 } // namespace content |
OLD | NEW |