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/base_paths.h" | 5 #include "base/base_paths.h" |
6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/mac/foundation_util.h" | 8 #include "base/mac/foundation_util.h" |
9 #include "base/native_library.h" | 9 #include "base/native_library.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 return false; | 105 return false; |
106 } | 106 } |
107 | 107 |
108 return true; | 108 return true; |
109 } | 109 } |
110 | 110 |
111 bool InitializeDynamicGLBindings(GLImplementation implementation, | 111 bool InitializeDynamicGLBindings(GLImplementation implementation, |
112 GLContext* context) { | 112 GLContext* context) { |
113 switch (implementation) { | 113 switch (implementation) { |
114 case kGLImplementationOSMesaGL: | 114 case kGLImplementationOSMesaGL: |
115 InitializeDynamicGLBindingsGL(context); | |
116 InitializeDynamicGLBindingsOSMESA(context); | |
117 break; | |
118 case kGLImplementationDesktopGL: | 115 case kGLImplementationDesktopGL: |
119 case kGLImplementationAppleGL: | 116 case kGLImplementationAppleGL: |
120 InitializeDynamicGLBindingsGL(context); | 117 InitializeDynamicGLBindingsGL(context); |
121 break; | 118 break; |
122 case kGLImplementationMockGL: | 119 case kGLImplementationMockGL: |
123 if (!context) { | 120 if (!context) { |
124 scoped_refptr<GLContextStubWithExtensions> mock_context( | 121 scoped_refptr<GLContextStubWithExtensions> mock_context( |
125 new GLContextStubWithExtensions()); | 122 new GLContextStubWithExtensions()); |
126 mock_context->SetGLVersionString("3.0"); | 123 mock_context->SetGLVersionString("3.0"); |
127 InitializeDynamicGLBindingsGL(mock_context.get()); | 124 InitializeDynamicGLBindingsGL(mock_context.get()); |
(...skipping 18 matching lines...) Expand all Loading... |
146 SetGLImplementation(kGLImplementationNone); | 143 SetGLImplementation(kGLImplementationNone); |
147 | 144 |
148 UnloadGLNativeLibraries(); | 145 UnloadGLNativeLibraries(); |
149 } | 146 } |
150 | 147 |
151 bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) { | 148 bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) { |
152 return false; | 149 return false; |
153 } | 150 } |
154 | 151 |
155 } // namespace gfx | 152 } // namespace gfx |
OLD | NEW |