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

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: 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
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 10b470ebcd0ff2aa8c514d53f38d613e6ea02260..5b9be2b8fbaaf68b86048f80903cffcdc827fb70 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1077,8 +1077,12 @@ static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) {
base::IntToString(NumberOfRendererRasterThreads()));
}
- if (IsGpuRasterizationEnabled())
+ if (IsGpuRasterizationEnabled()) {
command_line->AppendSwitch(switches::kEnableGpuRasterization);
+ command_line->AppendSwitchASCII(
+ switches::kGpuRasterizationMSAASampleCount,
+ base::IntToString(GpuRasterizationMSAASampleCount()));
+ }
DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled());
DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled());

Powered by Google App Engine
This is Rietveld 408576698