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

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

Issue 227593007: Add an --enable-container-culling commandline flag. (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
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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 prefs.accelerated_2d_canvas_enabled = 416 prefs.accelerated_2d_canvas_enabled =
417 GpuProcessHost::gpu_enabled() && 417 GpuProcessHost::gpu_enabled() &&
418 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); 418 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas);
419 prefs.antialiased_2d_canvas_disabled = 419 prefs.antialiased_2d_canvas_disabled =
420 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); 420 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing);
421 prefs.accelerated_2d_canvas_msaa_sample_count = 421 prefs.accelerated_2d_canvas_msaa_sample_count =
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 =
427 command_line.HasSwitch(switches::kEnableContainerCulling);
426 prefs.accelerated_compositing_for_3d_transforms_enabled = 428 prefs.accelerated_compositing_for_3d_transforms_enabled =
427 prefs.accelerated_compositing_for_animation_enabled = 429 prefs.accelerated_compositing_for_animation_enabled =
428 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); 430 !command_line.HasSwitch(switches::kDisableAcceleratedLayers);
429 prefs.accelerated_compositing_for_plugins_enabled = true; 431 prefs.accelerated_compositing_for_plugins_enabled = true;
430 prefs.accelerated_compositing_for_video_enabled = 432 prefs.accelerated_compositing_for_video_enabled =
431 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); 433 !command_line.HasSwitch(switches::kDisableAcceleratedVideo);
432 prefs.lazy_layout_enabled = 434 prefs.lazy_layout_enabled =
433 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); 435 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures);
434 prefs.region_based_columns_enabled = 436 prefs.region_based_columns_enabled =
435 command_line.HasSwitch(switches::kEnableRegionBasedColumns); 437 command_line.HasSwitch(switches::kEnableRegionBasedColumns);
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 return true; 1852 return true;
1851 } 1853 }
1852 1854
1853 void RenderViewHostImpl::AttachToFrameTree() { 1855 void RenderViewHostImpl::AttachToFrameTree() {
1854 FrameTree* frame_tree = delegate_->GetFrameTree(); 1856 FrameTree* frame_tree = delegate_->GetFrameTree();
1855 1857
1856 frame_tree->ResetForMainFrameSwap(); 1858 frame_tree->ResetForMainFrameSwap();
1857 } 1859 }
1858 1860
1859 } // namespace content 1861 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698