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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 11827002: Add a command-line flag to disable canvas antialiasing. This will be used to characterize performa… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Flip the chrome side code to use _disabled instead of _enabled. Created 7 years, 11 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 | « no previous file | content/public/common/common_param_traits_macros.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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 prefs.force_compositing_mode = 489 prefs.force_compositing_mode =
490 command_line.HasSwitch(switches::kForceCompositingMode) && 490 command_line.HasSwitch(switches::kForceCompositingMode) &&
491 !command_line.HasSwitch(switches::kDisableForceCompositingMode); 491 !command_line.HasSwitch(switches::kDisableForceCompositingMode);
492 prefs.fixed_position_compositing_enabled = 492 prefs.fixed_position_compositing_enabled =
493 command_line.HasSwitch(switches::kEnableCompositingForFixedPosition); 493 command_line.HasSwitch(switches::kEnableCompositingForFixedPosition);
494 prefs.accelerated_2d_canvas_enabled = 494 prefs.accelerated_2d_canvas_enabled =
495 GpuProcessHost::gpu_enabled() && 495 GpuProcessHost::gpu_enabled() &&
496 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas); 496 !command_line.HasSwitch(switches::kDisableAccelerated2dCanvas);
497 prefs.deferred_2d_canvas_enabled = 497 prefs.deferred_2d_canvas_enabled =
498 !command_line.HasSwitch(switches::kDisableDeferred2dCanvas); 498 !command_line.HasSwitch(switches::kDisableDeferred2dCanvas);
499 prefs.antialiased_2d_canvas_disabled =
500 command_line.HasSwitch(switches::kDisable2dCanvasAntialiasing);
499 prefs.accelerated_painting_enabled = 501 prefs.accelerated_painting_enabled =
500 GpuProcessHost::gpu_enabled() && 502 GpuProcessHost::gpu_enabled() &&
501 command_line.HasSwitch(switches::kEnableAcceleratedPainting); 503 command_line.HasSwitch(switches::kEnableAcceleratedPainting);
502 prefs.accelerated_filters_enabled = 504 prefs.accelerated_filters_enabled =
503 GpuProcessHost::gpu_enabled() && 505 GpuProcessHost::gpu_enabled() &&
504 command_line.HasSwitch(switches::kEnableAcceleratedFilters); 506 command_line.HasSwitch(switches::kEnableAcceleratedFilters);
505 prefs.accelerated_compositing_for_3d_transforms_enabled = 507 prefs.accelerated_compositing_for_3d_transforms_enabled =
506 prefs.accelerated_compositing_for_animation_enabled = 508 prefs.accelerated_compositing_for_animation_enabled =
507 !command_line.HasSwitch(switches::kDisableAcceleratedLayers); 509 !command_line.HasSwitch(switches::kDisableAcceleratedLayers);
508 prefs.accelerated_compositing_for_plugins_enabled = 510 prefs.accelerated_compositing_for_plugins_enabled =
(...skipping 2880 matching lines...) Expand 10 before | Expand all | Expand 10 after
3389 3391
3390 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { 3392 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() {
3391 return browser_plugin_guest_.get(); 3393 return browser_plugin_guest_.get();
3392 } 3394 }
3393 3395
3394 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { 3396 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() {
3395 return browser_plugin_embedder_.get(); 3397 return browser_plugin_embedder_.get();
3396 } 3398 }
3397 3399
3398 } // namespace content 3400 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698