Index: ui/gl/gl_surface_win.cc |
diff --git a/ui/gl/gl_surface_win.cc b/ui/gl/gl_surface_win.cc |
index 5548121dc02384c2a6a0b6eed33d6e8d9405e239..c5d986d4721e4e35be9208a110442df3e8d1a0bb 100644 |
--- a/ui/gl/gl_surface_win.cc |
+++ b/ui/gl/gl_surface_win.cc |
@@ -53,35 +53,6 @@ class NativeViewGLSurfaceOSMesa : public GLSurfaceOSMesa { |
DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceOSMesa); |
}; |
-// Helper routine that does one-off initialization like determining the |
-// pixel format. |
-bool GLSurface::InitializeOneOffInternal() { |
- VSyncProviderWin::InitializeOneOff(); |
- |
- switch (GetGLImplementation()) { |
- case kGLImplementationDesktopGL: |
- if (!GLSurfaceWGL::InitializeOneOff()) { |
- LOG(ERROR) << "GLSurfaceWGL::InitializeOneOff failed."; |
- return false; |
- } |
- break; |
- case kGLImplementationEGLGLES2: |
- if (!GLSurfaceEGL::InitializeOneOff()) { |
- LOG(ERROR) << "GLSurfaceEGL::InitializeOneOff failed."; |
- return false; |
- } |
- break; |
- case kGLImplementationNone: |
- case kGLImplementationDesktopGLCoreProfile: |
- case kGLImplementationAppleGL: |
- NOTREACHED(); |
- case kGLImplementationOSMesaGL: |
- case kGLImplementationMockGL: |
- break; |
- } |
- return true; |
-} |
- |
NativeViewGLSurfaceOSMesa::NativeViewGLSurfaceOSMesa( |
gfx::AcceleratedWidget window) |
: GLSurfaceOSMesa(SURFACE_OSMESA_RGBA, gfx::Size(1, 1)), |