Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 240253006: Remove --disable-accelerated-video and GPU_FEATURE_TYPE_ACCELERATED_VIDEO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/resources/gpu/info_view.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 atoi(command_line.GetSwitchValueASCII( 422 atoi(command_line.GetSwitchValueASCII(
423 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); 423 switches::kAcceleratedCanvas2dMSAASampleCount).c_str());
424 prefs.deferred_filters_enabled = 424 prefs.deferred_filters_enabled =
425 command_line.HasSwitch(switches::kEnableDeferredFilters); 425 command_line.HasSwitch(switches::kEnableDeferredFilters);
426 prefs.container_culling_enabled = 426 prefs.container_culling_enabled =
427 command_line.HasSwitch(switches::kEnableContainerCulling); 427 command_line.HasSwitch(switches::kEnableContainerCulling);
428 prefs.accelerated_compositing_for_3d_transforms_enabled = 428 prefs.accelerated_compositing_for_3d_transforms_enabled =
429 prefs.accelerated_compositing_for_animation_enabled = 429 prefs.accelerated_compositing_for_animation_enabled =
430 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); 430 !command_line.HasSwitch(switches::kDisableAcceleratedLayers);
431 prefs.accelerated_compositing_for_plugins_enabled = true; 431 prefs.accelerated_compositing_for_plugins_enabled = true;
432 prefs.accelerated_compositing_for_video_enabled = 432 prefs.accelerated_compositing_for_video_enabled = true;
danakj 2014/04/16 22:35:41 can set true in the constructor?
piman 2014/04/16 22:48:20 Done, let's give that a try.
433 !command_line.HasSwitch(switches::kDisableAcceleratedVideo);
434 prefs.lazy_layout_enabled = 433 prefs.lazy_layout_enabled =
435 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); 434 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures);
436 prefs.region_based_columns_enabled = 435 prefs.region_based_columns_enabled =
437 command_line.HasSwitch(switches::kEnableRegionBasedColumns); 436 command_line.HasSwitch(switches::kEnableRegionBasedColumns);
438 prefs.threaded_html_parser = 437 prefs.threaded_html_parser =
439 !command_line.HasSwitch(switches::kDisableThreadedHTMLParser); 438 !command_line.HasSwitch(switches::kDisableThreadedHTMLParser);
440 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) { 439 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) {
441 prefs.pinch_virtual_viewport_enabled = true; 440 prefs.pinch_virtual_viewport_enabled = true;
442 prefs.pinch_overlay_scrollbar_thickness = 10; 441 prefs.pinch_overlay_scrollbar_thickness = 10;
443 } 442 }
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 return true; 1777 return true;
1779 } 1778 }
1780 1779
1781 void RenderViewHostImpl::AttachToFrameTree() { 1780 void RenderViewHostImpl::AttachToFrameTree() {
1782 FrameTree* frame_tree = delegate_->GetFrameTree(); 1781 FrameTree* frame_tree = delegate_->GetFrameTree();
1783 1782
1784 frame_tree->ResetForMainFrameSwap(); 1783 frame_tree->ResetForMainFrameSwap();
1785 } 1784 }
1786 1785
1787 } // namespace content 1786 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/resources/gpu/info_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698