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

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

Issue 239973005: Remove GPU_FEATURE_TYPE_3D_CSS and --disable-accelerated-layers (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_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
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
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