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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 return initialized; | 82 return initialized; |
83 } | 83 } |
84 | 84 |
85 void ShutdownGL() { | 85 void ShutdownGL() { |
86 ShutdownGLPlatform(); | 86 ShutdownGLPlatform(); |
87 | 87 |
88 SetGLImplementation(kGLImplementationNone); | 88 SetGLImplementation(kGLImplementationNone); |
89 UnloadGLNativeLibraries(); | 89 UnloadGLNativeLibraries(); |
90 } | 90 } |
91 | 91 |
| 92 scoped_refptr<GLSurface> CreateOffscreenGLSurface(const gfx::Size& size) { |
| 93 return CreateOffscreenGLSurfaceWithFormat(size, GLSurfaceFormat()); |
| 94 } |
| 95 |
92 } // namespace init | 96 } // namespace init |
93 } // namespace gl | 97 } // namespace gl |
OLD | NEW |