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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); | 419 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); |
420 prefs.antialiased_2d_canvas_disabled = | 420 prefs.antialiased_2d_canvas_disabled = |
421 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); | 421 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); |
422 prefs.accelerated_2d_canvas_msaa_sample_count = | 422 prefs.accelerated_2d_canvas_msaa_sample_count = |
423 atoi(command_line.GetSwitchValueASCII( | 423 atoi(command_line.GetSwitchValueASCII( |
424 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); | 424 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); |
425 prefs.deferred_filters_enabled = | 425 prefs.deferred_filters_enabled = |
426 command_line.HasSwitch(switches::kEnableDeferredFilters); | 426 command_line.HasSwitch(switches::kEnableDeferredFilters); |
427 prefs.container_culling_enabled = | 427 prefs.container_culling_enabled = |
428 command_line.HasSwitch(switches::kEnableContainerCulling); | 428 command_line.HasSwitch(switches::kEnableContainerCulling); |
429 prefs.accelerated_compositing_for_video_enabled = | |
430 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); | |
431 prefs.lazy_layout_enabled = | 429 prefs.lazy_layout_enabled = |
432 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); | 430 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); |
433 prefs.region_based_columns_enabled = | 431 prefs.region_based_columns_enabled = |
434 command_line.HasSwitch(switches::kEnableRegionBasedColumns); | 432 command_line.HasSwitch(switches::kEnableRegionBasedColumns); |
435 | 433 |
436 #if defined(OS_CHROMEOS) | 434 #if defined(OS_CHROMEOS) |
437 bool enable_pinch_virtual_viewport = true; | 435 bool enable_pinch_virtual_viewport = true; |
438 #else | 436 #else |
439 bool enable_pinch_virtual_viewport = | 437 bool enable_pinch_virtual_viewport = |
440 command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport); | 438 command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport); |
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1761 return true; | 1759 return true; |
1762 } | 1760 } |
1763 | 1761 |
1764 void RenderViewHostImpl::AttachToFrameTree() { | 1762 void RenderViewHostImpl::AttachToFrameTree() { |
1765 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1763 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1766 | 1764 |
1767 frame_tree->ResetForMainFrameSwap(); | 1765 frame_tree->ResetForMainFrameSwap(); |
1768 } | 1766 } |
1769 | 1767 |
1770 } // namespace content | 1768 } // namespace content |
OLD | NEW |