OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ui/gl/init/gl_factory.h" | 5 #include "ui/gl/init/gl_factory.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 DVLOG(1) << "Using " << GetGLImplementationName(GetGLImplementation()) | 76 DVLOG(1) << "Using " << GetGLImplementationName(GetGLImplementation()) |
77 << " GL implementation."; | 77 << " GL implementation."; |
78 if (gpu_service_logging) | 78 if (gpu_service_logging) |
79 InitializeDebugGLBindings(); | 79 InitializeDebugGLBindings(); |
80 if (disable_gl_drawing) | 80 if (disable_gl_drawing) |
81 InitializeNullDrawGLBindings(); | 81 InitializeNullDrawGLBindings(); |
82 } | 82 } |
83 return initialized; | 83 return initialized; |
84 } | 84 } |
85 | 85 |
| 86 void ClearGLBindings() { |
| 87 ClearGLBindingsPlatform(); |
| 88 |
| 89 SetGLImplementation(kGLImplementationNone); |
| 90 UnloadGLNativeLibraries(); |
| 91 } |
| 92 |
86 } // namespace init | 93 } // namespace init |
87 } // namespace gl | 94 } // namespace gl |
OLD | NEW |