| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "ui/gfx/ozone/surface_factory_ozone.h" | 6 #include "ui/gfx/ozone/surface_factory_ozone.h" |
| 7 #include "ui/gl/gl_bindings.h" | 7 #include "ui/gl/gl_bindings.h" |
| 8 #include "ui/gl/gl_egl_api_implementation.h" | 8 #include "ui/gl/gl_egl_api_implementation.h" |
| 9 #include "ui/gl/gl_gl_api_implementation.h" | 9 #include "ui/gl/gl_gl_api_implementation.h" |
| 10 #include "ui/gl/gl_implementation.h" | 10 #include "ui/gl/gl_implementation.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 case kGLImplementationMockGL: | 86 case kGLImplementationMockGL: |
| 87 InitializeGLExtensionBindingsGL(context); | 87 InitializeGLExtensionBindingsGL(context); |
| 88 break; | 88 break; |
| 89 default: | 89 default: |
| 90 return false; | 90 return false; |
| 91 } | 91 } |
| 92 | 92 |
| 93 return true; | 93 return true; |
| 94 } | 94 } |
| 95 | 95 |
| 96 void InitializeDebugGLBindings() { | |
| 97 } | |
| 98 | |
| 99 void ClearGLBindings() { | 96 void ClearGLBindings() { |
| 100 ClearGLBindingsEGL(); | 97 ClearGLBindingsEGL(); |
| 101 ClearGLBindingsGL(); | 98 ClearGLBindingsGL(); |
| 102 SetGLImplementation(kGLImplementationNone); | 99 SetGLImplementation(kGLImplementationNone); |
| 103 UnloadGLNativeLibraries(); | 100 UnloadGLNativeLibraries(); |
| 104 } | 101 } |
| 105 | 102 |
| 106 bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) { | 103 bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) { |
| 107 switch (GetGLImplementation()) { | 104 switch (GetGLImplementation()) { |
| 108 case kGLImplementationEGLGLES2: | 105 case kGLImplementationEGLGLES2: |
| 109 return GetGLWindowSystemBindingInfoEGL(info); | 106 return GetGLWindowSystemBindingInfoEGL(info); |
| 110 default: | 107 default: |
| 111 return false; | 108 return false; |
| 112 } | 109 } |
| 113 return false; | 110 return false; |
| 114 } | 111 } |
| 115 | 112 |
| 116 } // namespace gfx | 113 } // namespace gfx |
| OLD | NEW |