| 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_3d_transforms_enabled = | |
| 430 prefs.accelerated_compositing_for_animation_enabled = | |
| 431 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); | |
| 432 prefs.accelerated_compositing_for_plugins_enabled = true; | |
| 433 prefs.accelerated_compositing_for_video_enabled = | 429 prefs.accelerated_compositing_for_video_enabled = |
| 434 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); | 430 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); |
| 435 prefs.lazy_layout_enabled = | 431 prefs.lazy_layout_enabled = |
| 436 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); | 432 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); |
| 437 prefs.region_based_columns_enabled = | 433 prefs.region_based_columns_enabled = |
| 438 command_line.HasSwitch(switches::kEnableRegionBasedColumns); | 434 command_line.HasSwitch(switches::kEnableRegionBasedColumns); |
| 439 | 435 |
| 440 #if defined(OS_CHROMEOS) | 436 #if defined(OS_CHROMEOS) |
| 441 bool enable_pinch_virtual_viewport = true; | 437 bool enable_pinch_virtual_viewport = true; |
| 442 #else | 438 #else |
| (...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1765 return true; | 1761 return true; |
| 1766 } | 1762 } |
| 1767 | 1763 |
| 1768 void RenderViewHostImpl::AttachToFrameTree() { | 1764 void RenderViewHostImpl::AttachToFrameTree() { |
| 1769 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1765 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1770 | 1766 |
| 1771 frame_tree->ResetForMainFrameSwap(); | 1767 frame_tree->ResetForMainFrameSwap(); |
| 1772 } | 1768 } |
| 1773 | 1769 |
| 1774 } // namespace content | 1770 } // namespace content |
| OLD | NEW |