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

Side by Side Diff: content/public/common/content_switches.cc

Issue 881513004: Add a command-line flag to set GPU rasterization multisampling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // This option is also used by the browser to send the list of trials to 490 // This option is also used by the browser to send the list of trials to
491 // renderers, using the same format. See 491 // renderers, using the same format. See
492 // FieldTrialList::CreateTrialsFromString() in field_trial.h for details. 492 // FieldTrialList::CreateTrialsFromString() in field_trial.h for details.
493 const char kForceFieldTrials[] = "force-fieldtrials"; 493 const char kForceFieldTrials[] = "force-fieldtrials";
494 494
495 // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU 495 // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
496 // accelerated compositing + impl-side painting. Overrides the 496 // accelerated compositing + impl-side painting. Overrides the
497 // kEnableGpuRasterization flag. 497 // kEnableGpuRasterization flag.
498 const char kForceGpuRasterization[] = "force-gpu-rasterization"; 498 const char kForceGpuRasterization[] = "force-gpu-rasterization";
499 499
500 // The number of multisample antialiasing samples for GPU rasterization.
501 // Requires MSAA support on GPU to have an effect. 0 disables MSAA.
502 const char kGpuRasterizationMSAASampleCount[] = "gpu-rasterization-msaa-sample-c ount";
503
500 // Force renderer accessibility to be on instead of enabling it on demand when 504 // Force renderer accessibility to be on instead of enabling it on demand when
501 // a screen reader is detected. The disable-renderer-accessibility switch 505 // a screen reader is detected. The disable-renderer-accessibility switch
502 // overrides this if present. 506 // overrides this if present.
503 const char kForceRendererAccessibility[] = "force-renderer-accessibility"; 507 const char kForceRendererAccessibility[] = "force-renderer-accessibility";
504 508
505 // Always use text blob rendering, overriding kDisableTextBlobs and any 509 // Always use text blob rendering, overriding kDisableTextBlobs and any
506 // heuristics that may otherwise disable it. 510 // heuristics that may otherwise disable it.
507 // TODO(fmalita): remove after --disable-impl-side-painting is phased out. 511 // TODO(fmalita): remove after --disable-impl-side-painting is phased out.
508 const char kForceTextBlobs[] = "force-text-blobs"; 512 const char kForceTextBlobs[] = "force-text-blobs";
509 513
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) 976 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown))
973 return false; 977 return false;
974 // Default. 978 // Default.
975 return group_name == "Enabled"; 979 return group_name == "Enabled";
976 } 980 }
977 #endif 981 #endif
978 982
979 // Don't dump stuff here, follow the same order as the header. 983 // Don't dump stuff here, follow the same order as the header.
980 984
981 } // namespace switches 985 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698