| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/ozone/platform/x11/gl_ozone_glx.h" | 5 #include "ui/ozone/platform/x11/gl_ozone_glx.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "ui/gl/gl_context.h" | 8 #include "ui/gl/gl_context.h" |
| 9 #include "ui/gl/gl_context_glx.h" | 9 #include "ui/gl/gl_context_glx.h" |
| 10 #include "ui/gl/gl_gl_api_implementation.h" | 10 #include "ui/gl/gl_gl_api_implementation.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 gl::InitializeStaticGLBindingsGLX(); | 65 gl::InitializeStaticGLBindingsGLX(); |
| 66 | 66 |
| 67 return true; | 67 return true; |
| 68 } | 68 } |
| 69 | 69 |
| 70 void GLOzoneGLX::InitializeDebugGLBindings() { | 70 void GLOzoneGLX::InitializeDebugGLBindings() { |
| 71 gl::InitializeDebugGLBindingsGL(); | 71 gl::InitializeDebugGLBindingsGL(); |
| 72 gl::InitializeDebugGLBindingsGLX(); | 72 gl::InitializeDebugGLBindingsGLX(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void GLOzoneGLX::ClearGLBindings() { | 75 void GLOzoneGLX::ShutdownGL() { |
| 76 gl::ClearGLBindingsGL(); | 76 gl::ClearBindingsGL(); |
| 77 gl::ClearGLBindingsGLX(); | 77 gl::ClearBindingsGLX(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 bool GLOzoneGLX::GetGLWindowSystemBindingInfo( | 80 bool GLOzoneGLX::GetGLWindowSystemBindingInfo( |
| 81 gl::GLWindowSystemBindingInfo* info) { | 81 gl::GLWindowSystemBindingInfo* info) { |
| 82 return gl::GetGLWindowSystemBindingInfoGLX(info); | 82 return gl::GetGLWindowSystemBindingInfoGLX(info); |
| 83 } | 83 } |
| 84 | 84 |
| 85 scoped_refptr<gl::GLContext> GLOzoneGLX::CreateGLContext( | 85 scoped_refptr<gl::GLContext> GLOzoneGLX::CreateGLContext( |
| 86 gl::GLShareGroup* share_group, | 86 gl::GLShareGroup* share_group, |
| 87 gl::GLSurface* compatible_surface, | 87 gl::GLSurface* compatible_surface, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 99 gfx::AcceleratedWidget window) { | 99 gfx::AcceleratedWidget window) { |
| 100 return nullptr; | 100 return nullptr; |
| 101 } | 101 } |
| 102 | 102 |
| 103 scoped_refptr<gl::GLSurface> GLOzoneGLX::CreateOffscreenGLSurface( | 103 scoped_refptr<gl::GLSurface> GLOzoneGLX::CreateOffscreenGLSurface( |
| 104 const gfx::Size& size) { | 104 const gfx::Size& size) { |
| 105 return gl::InitializeGLSurface(new gl::UnmappedNativeViewGLSurfaceGLX(size)); | 105 return gl::InitializeGLSurface(new gl::UnmappedNativeViewGLSurfaceGLX(size)); |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace ui | 108 } // namespace ui |
| OLD | NEW |