| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/gfx/gl/gl_implementation.h" | 5 #include "app/gfx/gl/gl_implementation.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "app/app_switches.h" | 10 #include "app/app_switches.h" |
| 11 #include "base/at_exit.h" | 11 #include "base/at_exit.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/logging.h" |
| 13 | 14 |
| 14 namespace gfx { | 15 namespace gfx { |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 typedef std::vector<base::NativeLibrary> LibraryArray; | 18 typedef std::vector<base::NativeLibrary> LibraryArray; |
| 18 | 19 |
| 19 GLImplementation g_gl_implementation = kGLImplementationNone; | 20 GLImplementation g_gl_implementation = kGLImplementationNone; |
| 20 LibraryArray* g_libraries; | 21 LibraryArray* g_libraries; |
| 21 GLGetProcAddressProc g_get_proc_address; | 22 GLGetProcAddressProc g_get_proc_address; |
| 22 | 23 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 name); | 121 name); |
| 121 if (proc) | 122 if (proc) |
| 122 return proc; | 123 return proc; |
| 123 } | 124 } |
| 124 } | 125 } |
| 125 | 126 |
| 126 return NULL; | 127 return NULL; |
| 127 } | 128 } |
| 128 | 129 |
| 129 } // namespace gfx | 130 } // namespace gfx |
| OLD | NEW |