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

Unified Diff: gpu/config/gpu_info_collector_linux.cc

Issue 2261893003: Remove GpuInfo::can_lose_context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « gpu/config/gpu_info_collector_android.cc ('k') | gpu/config/gpu_info_collector_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info_collector_linux.cc
diff --git a/gpu/config/gpu_info_collector_linux.cc b/gpu/config/gpu_info_collector_linux.cc
index 1f380474f792e134d7f7589418e34ebc9a65e220..b1613af9bfabb76e12a148b3c33a44e81ac574f7 100644
--- a/gpu/config/gpu_info_collector_linux.cc
+++ b/gpu/config/gpu_info_collector_linux.cc
@@ -168,20 +168,6 @@ CollectInfoResult CollectContextGraphicsInfo(GPUInfo* gpu_info) {
TRACE_EVENT0("gpu", "gpu_info_collector::CollectGraphicsInfo");
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kGpuNoContextLost)) {
- gpu_info->can_lose_context = false;
- } else {
-#if defined(OS_CHROMEOS)
- gpu_info->can_lose_context = false;
-#else
- // TODO(zmo): need to consider the case where we are running on top
- // of desktop GL and GL_ARB_robustness extension is available.
- gpu_info->can_lose_context =
- (gl::GetGLImplementation() == gl::kGLImplementationEGLGLES2);
-#endif
- }
-
CollectInfoResult result = CollectGraphicsInfoGL(gpu_info);
gpu_info->context_info_state = result;
return result;
« no previous file with comments | « gpu/config/gpu_info_collector_android.cc ('k') | gpu/config/gpu_info_collector_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698