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

Unified Diff: gpu/ipc/service/gpu_init.cc

Issue 2690113010: Abstract OSMesa from the Layout tests (Closed)
Patch Set: Fixed test code 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: gpu/ipc/service/gpu_init.cc
diff --git a/gpu/ipc/service/gpu_init.cc b/gpu/ipc/service/gpu_init.cc
index facd39fcb77598e48e0305b860ffc2cf25625375..e4938ec674a258cf53ec6c467c7c05c16a835998 100644
--- a/gpu/ipc/service/gpu_init.cc
+++ b/gpu/ipc/service/gpu_init.cc
@@ -224,9 +224,9 @@ bool GpuInit::InitializeAndStartSandbox(const base::CommandLine& command_line) {
UMA_HISTOGRAM_MEDIUM_TIMES("GPU.InitializeOneOffMediumTime",
initialize_one_off_time);
- // OSMesa is expected to run very slowly, so disable the watchdog in that
- // case.
- if (gl::GetGLImplementation() == gl::kGLImplementationOSMesaGL) {
+ // The software renderer is expected to run slowly, so disable the watchdog
+ // in that case.
+ if (gl::GetGLImplementation() == gl::GetSoftwareGLImplementation()) {
if (watchdog_thread_)
watchdog_thread_->Stop();
watchdog_thread_ = nullptr;

Powered by Google App Engine
This is Rietveld 408576698