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 "ui/gl/gl_implementation.h" | 5 #include "ui/gl/gl_implementation.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "ui/gl/gl_bindings.h" | 13 #include "ui/gl/gl_bindings.h" |
| 14 #include "ui/gl/gl_gl_api_implementation.h" |
14 | 15 |
15 namespace gfx { | 16 namespace gfx { |
16 | 17 |
17 namespace { | 18 namespace { |
18 | 19 |
19 const struct { | 20 const struct { |
20 const char* name; | 21 const char* name; |
21 GLImplementation implementation; | 22 GLImplementation implementation; |
22 } kGLImplementationNamePairs[] = { | 23 } kGLImplementationNamePairs[] = { |
23 { kGLImplementationDesktopName, kGLImplementationDesktopGL }, | 24 { kGLImplementationDesktopName, kGLImplementationDesktopGL }, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 void* proc = GetGLCoreProcAddress(name); | 165 void* proc = GetGLCoreProcAddress(name); |
165 if (!proc && g_get_proc_address) { | 166 if (!proc && g_get_proc_address) { |
166 proc = g_get_proc_address(name); | 167 proc = g_get_proc_address(name); |
167 if (proc) | 168 if (proc) |
168 return proc; | 169 return proc; |
169 } | 170 } |
170 | 171 |
171 return proc; | 172 return proc; |
172 } | 173 } |
173 | 174 |
| 175 void InitializeNullDrawGLBindings() { |
| 176 // This is platform independent, so it does not need to live in a platform |
| 177 // specific implementation file. |
| 178 InitializeNullDrawGLBindingsGL(); |
| 179 } |
| 180 |
174 } // namespace gfx | 181 } // namespace gfx |
OLD | NEW |