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

Unified Diff: gpu/config/gpu_info_collector.cc

Issue 131433004: Don't initialize GL again in AcceleratedSurface::Initialize() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: macgl: Created 6 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
« no previous file with comments | « content/child/npapi/plugin_host.cc ('k') | ui/surface/accelerated_surface_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info_collector.cc
diff --git a/gpu/config/gpu_info_collector.cc b/gpu/config/gpu_info_collector.cc
index 9404f3a540e7f6f3b2ee86616cf8545dba03f69d..d81ee69b03afb38350e2db7ef7fd97e391948278 100644
--- a/gpu/config/gpu_info_collector.cc
+++ b/gpu/config/gpu_info_collector.cc
@@ -82,6 +82,7 @@ namespace gpu {
bool CollectGraphicsInfoGL(GPUInfo* gpu_info) {
TRACE_EVENT0("startup", "gpu_info_collector::CollectGraphicsInfoGL");
+ DCHECK_NE(gfx::GetGLImplementation(), gfx::kGLImplementationNone);
scoped_refptr<gfx::GLSurface> surface(InitializeGLSurface());
if (!surface.get())
« no previous file with comments | « content/child/npapi/plugin_host.cc ('k') | ui/surface/accelerated_surface_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698