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 <d3dx9.h> | 5 #include <d3dx9.h> |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/native_library.h" | 15 #include "base/native_library.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/stringprintf.h" | 17 #include "base/stringprintf.h" |
18 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
19 #include "ui/gfx/gl/gl_bindings.h" | 19 #include "ui/gl/gl_bindings.h" |
20 #include "ui/gfx/gl/gl_implementation.h" | 20 #include "ui/gl/gl_implementation.h" |
21 | 21 |
22 #if defined(ENABLE_SWIFTSHADER) | 22 #if defined(ENABLE_SWIFTSHADER) |
23 #include "software_renderer.h" | 23 #include "software_renderer.h" |
24 #endif | 24 #endif |
25 | 25 |
26 namespace gfx { | 26 namespace gfx { |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 typedef std::vector<base::NativeLibrary> LibraryArray; | 30 typedef std::vector<base::NativeLibrary> LibraryArray; |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 ClearGLBindingsGL(); | 281 ClearGLBindingsGL(); |
282 ClearGLBindingsOSMESA(); | 282 ClearGLBindingsOSMESA(); |
283 ClearGLBindingsWGL(); | 283 ClearGLBindingsWGL(); |
284 SetGLImplementation(kGLImplementationNone); | 284 SetGLImplementation(kGLImplementationNone); |
285 | 285 |
286 UnloadGLNativeLibraries(); | 286 UnloadGLNativeLibraries(); |
287 UnloadD3DXLibraries(NULL); | 287 UnloadD3DXLibraries(NULL); |
288 } | 288 } |
289 | 289 |
290 } // namespace gfx | 290 } // namespace gfx |
OLD | NEW |