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

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

Issue 238933009: Remove --disable-accelerated-compositing (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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); 403 command_line.HasSwitch(switches::kAllowFileAccessFromFiles);
404 404
405 prefs.layer_squashing_enabled = false; 405 prefs.layer_squashing_enabled = false;
406 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) 406 if (command_line.HasSwitch(switches::kEnableLayerSquashing))
407 prefs.layer_squashing_enabled = true; 407 prefs.layer_squashing_enabled = true;
408 if (command_line.HasSwitch(switches::kDisableLayerSquashing)) 408 if (command_line.HasSwitch(switches::kDisableLayerSquashing))
409 prefs.layer_squashing_enabled = false; 409 prefs.layer_squashing_enabled = false;
410 410
411 prefs.show_paint_rects = 411 prefs.show_paint_rects =
412 command_line.HasSwitch(switches::kShowPaintRects); 412 command_line.HasSwitch(switches::kShowPaintRects);
413 prefs.accelerated_compositing_enabled = 413 prefs.accelerated_compositing_enabled = GpuProcessHost::gpu_enabled();
414 GpuProcessHost::gpu_enabled() &&
415 !command_line.HasSwitch(switches::kDisableAcceleratedCompositing);
416 prefs.force_compositing_mode = content::IsForceCompositingModeEnabled(); 414 prefs.force_compositing_mode = content::IsForceCompositingModeEnabled();
417 prefs.accelerated_2d_canvas_enabled = 415 prefs.accelerated_2d_canvas_enabled =
418 GpuProcessHost::gpu_enabled() && 416 GpuProcessHost::gpu_enabled() &&
419 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); 417 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas);
420 prefs.antialiased_2d_canvas_disabled = 418 prefs.antialiased_2d_canvas_disabled =
421 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing); 419 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing);
422 prefs.accelerated_2d_canvas_msaa_sample_count = 420 prefs.accelerated_2d_canvas_msaa_sample_count =
423 atoi(command_line.GetSwitchValueASCII( 421 atoi(command_line.GetSwitchValueASCII(
424 switches::kAcceleratedCanvas2dMSAASampleCount).c_str()); 422 switches::kAcceleratedCanvas2dMSAASampleCount).c_str());
425 prefs.deferred_filters_enabled = 423 prefs.deferred_filters_enabled =
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 return true; 1777 return true;
1780 } 1778 }
1781 1779
1782 void RenderViewHostImpl::AttachToFrameTree() { 1780 void RenderViewHostImpl::AttachToFrameTree() {
1783 FrameTree* frame_tree = delegate_->GetFrameTree(); 1781 FrameTree* frame_tree = delegate_->GetFrameTree();
1784 1782
1785 frame_tree->ResetForMainFrameSwap(); 1783 frame_tree->ResetForMainFrameSwap();
1786 } 1784 }
1787 1785
1788 } // namespace content 1786 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698