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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/threading/thread_restrictions.h" | 10 #include "base/threading/thread_restrictions.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 #if defined(OS_OPENBSD) | 36 #if defined(OS_OPENBSD) |
37 const char kGLLibraryName[] = "libGL.so"; | 37 const char kGLLibraryName[] = "libGL.so"; |
38 #else | 38 #else |
39 const char kGLLibraryName[] = "libGL.so.1"; | 39 const char kGLLibraryName[] = "libGL.so.1"; |
40 #endif | 40 #endif |
41 | 41 |
42 const char kGLESv2LibraryName[] = "libGLESv2.so.2"; | 42 const char kGLESv2LibraryName[] = "libGLESv2.so.2"; |
43 const char kEGLLibraryName[] = "libEGL.so.1"; | 43 const char kEGLLibraryName[] = "libEGL.so.1"; |
44 | 44 |
45 const char kGLESv2ANGLELibraryName[] = "libGLESv2_ANGLE.so"; | 45 const char kGLESv2ANGLELibraryName[] = "libGLESv2.so"; |
46 const char kEGLANGLELibraryName[] = "libEGL_ANGLE.so"; | 46 const char kEGLANGLELibraryName[] = "libEGL.so"; |
47 | 47 |
48 } // namespace | 48 } // namespace |
49 | 49 |
50 void GetAllowedGLImplementations(std::vector<GLImplementation>* impls) { | 50 void GetAllowedGLImplementations(std::vector<GLImplementation>* impls) { |
51 impls->push_back(kGLImplementationDesktopGL); | 51 impls->push_back(kGLImplementationDesktopGL); |
52 impls->push_back(kGLImplementationEGLGLES2); | 52 impls->push_back(kGLImplementationEGLGLES2); |
53 impls->push_back(kGLImplementationOSMesaGL); | 53 impls->push_back(kGLImplementationOSMesaGL); |
54 } | 54 } |
55 | 55 |
56 bool InitializeStaticGLBindings(GLImplementation implementation) { | 56 bool InitializeStaticGLBindings(GLImplementation implementation) { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 return GetGLWindowSystemBindingInfoGLX(info); | 212 return GetGLWindowSystemBindingInfoGLX(info); |
213 case kGLImplementationEGLGLES2: | 213 case kGLImplementationEGLGLES2: |
214 return GetGLWindowSystemBindingInfoEGL(info); | 214 return GetGLWindowSystemBindingInfoEGL(info); |
215 default: | 215 default: |
216 return false; | 216 return false; |
217 } | 217 } |
218 return false; | 218 return false; |
219 } | 219 } |
220 | 220 |
221 } // namespace gfx | 221 } // namespace gfx |
OLD | NEW |