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

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

Issue 205923005: Remove --enable-accelerated-filters flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the call to the Blink API also. Created 6 years, 9 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 | « chrome/browser/about_flags.cc ('k') | content/public/common/content_switches.h » ('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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 content::IsForceCompositingModeEnabled() && 418 content::IsForceCompositingModeEnabled() &&
419 !command_line.HasSwitch(switches::kDisableForceCompositingMode); 419 !command_line.HasSwitch(switches::kDisableForceCompositingMode);
420 prefs.accelerated_2d_canvas_enabled = 420 prefs.accelerated_2d_canvas_enabled =
421 GpuProcessHost::gpu_enabled() && 421 GpuProcessHost::gpu_enabled() &&
422 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); 422 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas);
423 prefs.antialiased_2d_canvas_disabled = 423 prefs.antialiased_2d_canvas_disabled =
424 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); 424 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing);
425 prefs.accelerated_2d_canvas_msaa_sample_count = 425 prefs.accelerated_2d_canvas_msaa_sample_count =
426 atoi(command_line.GetSwitchValueASCII( 426 atoi(command_line.GetSwitchValueASCII(
427 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); 427 switches::kAcceleratedCanvas2dMSAASampleCount).c_str());
428 prefs.accelerated_filters_enabled =
429 GpuProcessHost::gpu_enabled() &&
430 command_line.HasSwitch(switches::kEnableAcceleratedFilters);
431 prefs.deferred_filters_enabled = 428 prefs.deferred_filters_enabled =
432 command_line.HasSwitch(switches::kEnableDeferredFilters); 429 command_line.HasSwitch(switches::kEnableDeferredFilters);
433 prefs.accelerated_compositing_for_3d_transforms_enabled = 430 prefs.accelerated_compositing_for_3d_transforms_enabled =
434 prefs.accelerated_compositing_for_animation_enabled = 431 prefs.accelerated_compositing_for_animation_enabled =
435 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); 432 !command_line.HasSwitch(switches::kDisableAcceleratedLayers);
436 prefs.accelerated_compositing_for_plugins_enabled = true; 433 prefs.accelerated_compositing_for_plugins_enabled = true;
437 prefs.accelerated_compositing_for_video_enabled = 434 prefs.accelerated_compositing_for_video_enabled =
438 !command_line.HasSwitch(switches::kDisableAcceleratedVideo); 435 !command_line.HasSwitch(switches::kDisableAcceleratedVideo);
439 prefs.lazy_layout_enabled = 436 prefs.lazy_layout_enabled =
440 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures); 437 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures);
(...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 return true; 1930 return true;
1934 } 1931 }
1935 1932
1936 void RenderViewHostImpl::AttachToFrameTree() { 1933 void RenderViewHostImpl::AttachToFrameTree() {
1937 FrameTree* frame_tree = delegate_->GetFrameTree(); 1934 FrameTree* frame_tree = delegate_->GetFrameTree();
1938 1935
1939 frame_tree->ResetForMainFrameSwap(); 1936 frame_tree->ResetForMainFrameSwap();
1940 } 1937 }
1941 1938
1942 } // namespace content 1939 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698