| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 case kGLImplementationDesktopGL: | 211 case kGLImplementationDesktopGL: |
| 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 bool GetNativeLibraryNamesFromGLImplementation( |
| 222 GLImplementation implementation, |
| 223 std::vector<std::string>* required_libraries) { |
| 224 DCHECK(required_libraries); |
| 225 required_libraries->clear(); |
| 226 |
| 227 switch (implementation) { |
| 228 case kGLImplementationDesktopGL: |
| 229 required_libraries->push_back(kGLLibraryName); |
| 230 break; |
| 231 case kGLImplementationEGLGLES2: { |
| 232 required_libraries->push_back(kGLESv2LibraryName); |
| 233 required_libraries->push_back(kEGLLibraryName); |
| 234 break; |
| 235 } |
| 236 default: |
| 237 return false; |
| 238 } |
| 239 |
| 240 return true; |
| 241 } |
| 242 |
| 221 } // namespace gfx | 243 } // namespace gfx |
| OLD | NEW |