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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "app/gfx/gl/gl_bindings.h" | |
8 #include "app/gfx/gl/gl_implementation.h" | |
9 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
10 #include "base/command_line.h" | 8 #include "base/command_line.h" |
11 #include "base/file_path.h" | 9 #include "base/file_path.h" |
12 #include "base/logging.h" | 10 #include "base/logging.h" |
13 #include "base/native_library.h" | 11 #include "base/native_library.h" |
14 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "ui/gfx/gl/gl_bindings.h" |
| 14 #include "ui/gfx/gl/gl_implementation.h" |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 namespace { | 17 namespace { |
18 | 18 |
19 // TODO(piman): it should be Desktop GL marshalling from double to float. Today | 19 // TODO(piman): it should be Desktop GL marshalling from double to float. Today |
20 // on native GLES, we do float->double->float. | 20 // on native GLES, we do float->double->float. |
21 void GL_BINDING_CALL MarshalClearDepthToClearDepthf(GLclampd depth) { | 21 void GL_BINDING_CALL MarshalClearDepthToClearDepthf(GLclampd depth) { |
22 glClearDepthf(static_cast<GLclampf>(depth)); | 22 glClearDepthf(static_cast<GLclampf>(depth)); |
23 } | 23 } |
24 | 24 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } | 151 } |
152 | 152 |
153 void InitializeDebugGLBindings() { | 153 void InitializeDebugGLBindings() { |
154 InitializeDebugGLBindingsEGL(); | 154 InitializeDebugGLBindingsEGL(); |
155 InitializeDebugGLBindingsGL(); | 155 InitializeDebugGLBindingsGL(); |
156 InitializeDebugGLBindingsGLX(); | 156 InitializeDebugGLBindingsGLX(); |
157 InitializeDebugGLBindingsOSMESA(); | 157 InitializeDebugGLBindingsOSMESA(); |
158 } | 158 } |
159 | 159 |
160 } // namespace gfx | 160 } // namespace gfx |
OLD | NEW |