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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 2680423002: Introducing 2 usages for SwiftShader (Closed)
Patch Set: Added missing change to GpuDataManagerImplPrivate Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index b3388b1893c4b0fe62b119a21635f25c8db1690d..da11850279b6a80d47e0e7b52173d4e8474feb2b 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -1039,8 +1039,8 @@ bool GpuProcessHost::LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences) {
GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line.get(),
gpu_preferences);
if (cmd_line->HasSwitch(switches::kUseGL)) {
- swiftshader_rendering_ =
- (cmd_line->GetSwitchValueASCII(switches::kUseGL) == "swiftshader");
+ swiftshader_rendering_ = (cmd_line->GetSwitchValueASCII(switches::kUseGL) ==
+ gl::kGLImplementationSwiftShaderForWebGLName);
}
bool current_gpu_type_enabled =

Powered by Google App Engine
This is Rietveld 408576698