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

Unified Diff: content/browser/renderer_host/render_process_host_impl.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: Forward MSAA count if set (regardless of gpu rast. enabled; it may be forced) 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index e17c792ca341b1fa90959bde8edb1b871b4139bd..5ed693e9df050c0065a027ad08b2b020dcfbf346 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1081,6 +1081,12 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
if (IsGpuRasterizationEnabled())
command_line->AppendSwitch(switches::kEnableGpuRasterization);
+ if (GpuRasterizationMSAASampleCount() > 0) {
danakj 2015/01/27 17:59:35 FWIW You could remove the if() here and the if(Has
piman 2015/01/27 18:07:16 nit: cache the return value of GpuRasterizationMSA
Stephen White 2015/01/27 18:11:45 Done.
+ command_line->AppendSwitchASCII(
+ switches::kGpuRasterizationMSAASampleCount,
+ base::IntToString(GpuRasterizationMSAASampleCount()));
+ }
+
DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled());
DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled());
if (IsZeroCopyUploadEnabled())
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698