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

Unified Diff: trunk/src/gpu/config/gpu_info_collector.cc

Issue 149953003: Revert 247793 "Ensure GL initialization only happens once, and p..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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: trunk/src/gpu/config/gpu_info_collector.cc
===================================================================
--- trunk/src/gpu/config/gpu_info_collector.cc (revision 247809)
+++ trunk/src/gpu/config/gpu_info_collector.cc (working copy)
@@ -82,6 +82,10 @@
bool CollectGraphicsInfoGL(GPUInfo* gpu_info) {
TRACE_EVENT0("startup", "gpu_info_collector::CollectGraphicsInfoGL");
+ if (!gfx::GLSurface::InitializeOneOff()) {
+ LOG(ERROR) << "gfx::GLSurface::InitializeOneOff() failed";
+ return false;
+ }
scoped_refptr<gfx::GLSurface> surface(InitializeGLSurface());
if (!surface.get())

Powered by Google App Engine
This is Rietveld 408576698