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

Unified Diff: content/gpu/gpu_main.cc

Issue 11574049: Only collect GL/D3D context specific GPUInfo in GPU process (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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/gpu/gpu_main.cc
===================================================================
--- content/gpu/gpu_main.cc (revision 173184)
+++ content/gpu/gpu_main.cc (working copy)
@@ -181,14 +181,12 @@
bool initialized_gl_context = false;
// Load and initialize the GL implementation and locate the GL entry points.
if (gfx::GLSurface::InitializeOneOff()) {
- if (!command_line.HasSwitch(switches::kSkipGpuFullInfoCollection)) {
- if (!gpu_info_collector::CollectGraphicsInfo(&gpu_info))
- VLOG(1) << "gpu_info_collector::CollectGraphicsInfo failed";
- GetContentClient()->SetGpuInfo(gpu_info);
+ if (!gpu_info_collector::CollectContextGraphicsInfo(&gpu_info))
+ VLOG(1) << "gpu_info_collector::CollectGraphicsInfo failed";
+ GetContentClient()->SetGpuInfo(gpu_info);
- // We know that CollectGraphicsInfo will initialize a GLContext.
- initialized_gl_context = true;
- }
+ // We know that CollectGraphicsInfo will initialize a GLContext.
+ initialized_gl_context = true;
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
if (gpu_info.gpu.vendor_id == 0x10de && // NVIDIA

Powered by Google App Engine
This is Rietveld 408576698