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

Unified Diff: ui/surface/accelerated_surface_mac.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 | « gpu/config/gpu_info_collector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/surface/accelerated_surface_mac.cc
diff --git a/ui/surface/accelerated_surface_mac.cc b/ui/surface/accelerated_surface_mac.cc
index 5c63de72dac7f231290ec55bc64037b5b7ad5e5b..8ff8492c5e36798be073eca5a19ccbf5be80aa03 100644
--- a/ui/surface/accelerated_surface_mac.cc
+++ b/ui/surface/accelerated_surface_mac.cc
@@ -29,9 +29,8 @@ bool AcceleratedSurface::Initialize(
gfx::GpuPreference gpu_preference) {
allocate_fbo_ = allocate_fbo;
- // Ensure GL is initialized before trying to create an offscreen GL context.
- if (!gfx::GLSurface::InitializeOneOff())
- return false;
+ // GL should be initialized by content::SupportsCoreAnimationPlugins().
+ DCHECK_NE(gfx::GetGLImplementation(), gfx::kGLImplementationNone);
// Drawing to IOSurfaces via OpenGL only works with Apple's GL and
// not with the OSMesa software renderer.
« no previous file with comments | « gpu/config/gpu_info_collector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698