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

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: Cache msaa sample count to avoid double-parsing it. Created 5 years, 10 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 // This option is also used by the browser to send the list of trials to 489 // This option is also used by the browser to send the list of trials to
490 // renderers, using the same format. See 490 // renderers, using the same format. See
491 // FieldTrialList::CreateTrialsFromString() in field_trial.h for details. 491 // FieldTrialList::CreateTrialsFromString() in field_trial.h for details.
492 const char kForceFieldTrials[] = "force-fieldtrials"; 492 const char kForceFieldTrials[] = "force-fieldtrials";
493 493
494 // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU 494 // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU
495 // accelerated compositing + impl-side painting. Overrides the 495 // accelerated compositing + impl-side painting. Overrides the
496 // kEnableGpuRasterization flag. 496 // kEnableGpuRasterization flag.
497 const char kForceGpuRasterization[] = "force-gpu-rasterization"; 497 const char kForceGpuRasterization[] = "force-gpu-rasterization";
498 498
499 // The number of multisample antialiasing samples for GPU rasterization.
500 // Requires MSAA support on GPU to have an effect. 0 disables MSAA.
501 const char kGpuRasterizationMSAASampleCount[] =
502 "gpu-rasterization-msaa-sample-count";
503
499 // 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
500 // a screen reader is detected. The disable-renderer-accessibility switch 505 // a screen reader is detected. The disable-renderer-accessibility switch
501 // overrides this if present. 506 // overrides this if present.
502 const char kForceRendererAccessibility[] = "force-renderer-accessibility"; 507 const char kForceRendererAccessibility[] = "force-renderer-accessibility";
503 508
504 // Always use text blob rendering, overriding kDisableTextBlobs and any 509 // Always use text blob rendering, overriding kDisableTextBlobs and any
505 // heuristics that may otherwise disable it. 510 // heuristics that may otherwise disable it.
506 // TODO(fmalita): remove after --disable-impl-side-painting is phased out. 511 // TODO(fmalita): remove after --disable-impl-side-painting is phased out.
507 const char kForceTextBlobs[] = "force-text-blobs"; 512 const char kForceTextBlobs[] = "force-text-blobs";
508 513
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) 976 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown))
972 return false; 977 return false;
973 // Default. 978 // Default.
974 return group_name == "Enabled"; 979 return group_name == "Enabled";
975 } 980 }
976 #endif 981 #endif
977 982
978 // 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.
979 984
980 } // namespace switches 985 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/gpu/compositor_dependencies.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698