Index: ui/gfx/gl/gl_context_cgl.cc |
diff --git a/ui/gfx/gl/gl_context_cgl.cc b/ui/gfx/gl/gl_context_cgl.cc |
index 1d5597b59662eb804352a6546bbb5995130e19f5..4aa7ee7eae8dc7081c1d0b7cd8bfb53d109a519e 100644 |
--- a/ui/gfx/gl/gl_context_cgl.cc |
+++ b/ui/gfx/gl/gl_context_cgl.cc |
@@ -21,12 +21,8 @@ GLContextCGL::GLContextCGL(GLShareGroup* share_group) |
gpu_preference_(PreferIntegratedGpu) { |
} |
-GLContextCGL::~GLContextCGL() { |
- Destroy(); |
-} |
- |
-bool GLContextCGL::Initialize( |
- GLSurface* compatible_surface, GpuPreference gpu_preference) { |
+bool GLContextCGL::Initialize(GLSurface* compatible_surface, |
+ GpuPreference gpu_preference) { |
DCHECK(compatible_surface); |
GLContextCGL* share_context = share_group() ? |
@@ -144,6 +140,10 @@ void GLContextCGL::SetSwapInterval(int interval) { |
LOG(WARNING) << "GLContex: GLContextCGL::SetSwapInterval is ignored."; |
} |
+GLContextCGL::~GLContextCGL() { |
+ Destroy(); |
+} |
+ |
GpuPreference GLContextCGL::GetGpuPreference() { |
return gpu_preference_; |
} |