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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/native_library.h" | 11 #include "base/native_library.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
14 #include "ui/gfx/gl/gl_bindings.h" | 14 #include "ui/gl/gl_bindings.h" |
15 #include "ui/gfx/gl/gl_implementation.h" | 15 #include "ui/gl/gl_implementation.h" |
16 #include "ui/gfx/gl/gl_switches.h" | 16 #include "ui/gl/gl_switches.h" |
17 | 17 |
18 namespace gfx { | 18 namespace gfx { |
19 namespace { | 19 namespace { |
20 | 20 |
21 // TODO(piman): it should be Desktop GL marshalling from double to float. Today | 21 // TODO(piman): it should be Desktop GL marshalling from double to float. Today |
22 // on native GLES, we do float->double->float. | 22 // on native GLES, we do float->double->float. |
23 void GL_BINDING_CALL MarshalClearDepthToClearDepthf(GLclampd depth) { | 23 void GL_BINDING_CALL MarshalClearDepthToClearDepthf(GLclampd depth) { |
24 glClearDepthf(static_cast<GLclampf>(depth)); | 24 glClearDepthf(static_cast<GLclampf>(depth)); |
25 } | 25 } |
26 | 26 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 ClearGLBindingsEGL(); | 219 ClearGLBindingsEGL(); |
220 ClearGLBindingsGL(); | 220 ClearGLBindingsGL(); |
221 ClearGLBindingsGLX(); | 221 ClearGLBindingsGLX(); |
222 ClearGLBindingsOSMESA(); | 222 ClearGLBindingsOSMESA(); |
223 SetGLImplementation(kGLImplementationNone); | 223 SetGLImplementation(kGLImplementationNone); |
224 | 224 |
225 UnloadGLNativeLibraries(); | 225 UnloadGLNativeLibraries(); |
226 } | 226 } |
227 | 227 |
228 } // namespace gfx | 228 } // namespace gfx |
OLD | NEW |