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

Unified Diff: trunk/src/content/gpu/gpu_main.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
« no previous file with comments | « trunk/src/content/gpu/gpu_child_thread.cc ('k') | trunk/src/content/test/content_test_suite.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/gpu/gpu_main.cc
===================================================================
--- trunk/src/content/gpu/gpu_main.cc (revision 247809)
+++ trunk/src/content/gpu/gpu_main.cc (working copy)
@@ -219,25 +219,8 @@
base::TimeTicks before_initialize_one_off = base::TimeTicks::Now();
- // Determine if we need to initialize GL here or it has already been done.
- bool gl_already_initialized = false;
-#if defined(OS_MACOSX)
- // On Mac, GLSurface::InitializeOneOff() is called from the sandbox warmup
- // code before getting here.
- gl_already_initialized = true;
-#endif
- if (command_line.HasSwitch(switches::kInProcessGPU)) {
- // With in-process GPU, GLSurface::InitializeOneOff() is called from
- // GpuChildThread before getting here.
- gl_already_initialized = true;
- }
-
// Load and initialize the GL implementation and locate the GL entry points.
- bool gl_initialized =
- gl_already_initialized
- ? gfx::GetGLImplementation() != gfx::kGLImplementationNone
- : gfx::GLSurface::InitializeOneOff();
- if (gl_initialized) {
+ if (gfx::GLSurface::InitializeOneOff()) {
// We need to collect GL strings (VENDOR, RENDERER) for blacklisting
// purposes. However, on Mac we don't actually use them. As documented in
// crbug.com/222934, due to some driver issues, glGetString could take
« no previous file with comments | « trunk/src/content/gpu/gpu_child_thread.cc ('k') | trunk/src/content/test/content_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698