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/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/logging.h" | 8 #include "base/logging.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 } | 125 } |
126 | 126 |
127 void ClearGLBindings() { | 127 void ClearGLBindings() { |
128 ClearGLBindingsEGL(); | 128 ClearGLBindingsEGL(); |
129 ClearGLBindingsGL(); | 129 ClearGLBindingsGL(); |
130 SetGLImplementation(kGLImplementationNone); | 130 SetGLImplementation(kGLImplementationNone); |
131 | 131 |
132 UnloadGLNativeLibraries(); | 132 UnloadGLNativeLibraries(); |
133 } | 133 } |
134 | 134 |
| 135 bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) { |
| 136 switch (GetGLImplementation()) { |
| 137 case kGLImplementationEGLGLES2: |
| 138 return GetGLWindowSystemBindingInfoEGL(info); |
| 139 default: |
| 140 return false; |
| 141 } |
| 142 return false; |
| 143 } |
| 144 |
135 } // namespace gfx | 145 } // namespace gfx |
OLD | NEW |