OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_bindings.h" | |
6 #include "app/gfx/gl/gl_implementation.h" | |
7 #include "base/base_paths.h" | 5 #include "base/base_paths.h" |
8 #include "base/file_path.h" | 6 #include "base/file_path.h" |
9 #include "base/logging.h" | 7 #include "base/logging.h" |
10 #include "base/native_library.h" | 8 #include "base/native_library.h" |
11 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "ui/gfx/gl/gl_bindings.h" |
| 11 #include "ui/gfx/gl/gl_implementation.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 namespace { | 14 namespace { |
15 const char kOpenGLFrameworkPath[] = | 15 const char kOpenGLFrameworkPath[] = |
16 "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL"; | 16 "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL"; |
17 } // namespace anonymous | 17 } // namespace anonymous |
18 | 18 |
19 bool InitializeGLBindings(GLImplementation implementation) { | 19 bool InitializeGLBindings(GLImplementation implementation) { |
20 // Prevent reinitialization with a different implementation. Once the gpu | 20 // Prevent reinitialization with a different implementation. Once the gpu |
21 // unit tests have initialized with kGLImplementationMock, we don't want to | 21 // unit tests have initialized with kGLImplementationMock, we don't want to |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 return true; | 84 return true; |
85 } | 85 } |
86 | 86 |
87 void InitializeDebugGLBindings() { | 87 void InitializeDebugGLBindings() { |
88 InitializeDebugGLBindingsGL(); | 88 InitializeDebugGLBindingsGL(); |
89 InitializeDebugGLBindingsOSMESA(); | 89 InitializeDebugGLBindingsOSMESA(); |
90 } | 90 } |
91 | 91 |
92 } // namespace gfx | 92 } // namespace gfx |
OLD | NEW |