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

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: rebase 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
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | content/browser/resources/gpu/info_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698