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

Unified Diff: content/gpu/gpu_main.cc

Issue 11576052: Revert 173248, broke building on the official chrome/win bot: (Closed) Base URL: svn://svn.chromium.org/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
« no previous file with comments | « content/gpu/gpu_info_collector_win.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
===================================================================
--- content/gpu/gpu_main.cc (revision 173266)
+++ content/gpu/gpu_main.cc (working copy)
@@ -181,12 +181,14 @@
bool initialized_gl_context = false;
// Load and initialize the GL implementation and locate the GL entry points.
if (gfx::GLSurface::InitializeOneOff()) {
- if (!gpu_info_collector::CollectContextGraphicsInfo(&gpu_info))
- VLOG(1) << "gpu_info_collector::CollectGraphicsInfo failed";
- GetContentClient()->SetGpuInfo(gpu_info);
+ if (!command_line.HasSwitch(switches::kSkipGpuFullInfoCollection)) {
+ if (!gpu_info_collector::CollectGraphicsInfo(&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
« no previous file with comments | « content/gpu/gpu_info_collector_win.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698