Chromium Code Reviews| 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 #ifndef UI_GL_INIT_GL_FACTORY_H_ | 5 #ifndef UI_GL_INIT_GL_FACTORY_H_ |
| 6 #define UI_GL_INIT_GL_FACTORY_H_ | 6 #define UI_GL_INIT_GL_FACTORY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 // be presented as an overlay. If surfaceless mode is not supported or | 63 // be presented as an overlay. If surfaceless mode is not supported or |
| 64 // enabled it will return a null pointer. | 64 // enabled it will return a null pointer. |
| 65 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface( | 65 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface( |
| 66 gfx::AcceleratedWidget window); | 66 gfx::AcceleratedWidget window); |
| 67 #endif // defined(USE_OZONE) | 67 #endif // defined(USE_OZONE) |
| 68 | 68 |
| 69 // Creates a GL surface used for offscreen rendering. | 69 // Creates a GL surface used for offscreen rendering. |
| 70 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( | 70 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( |
| 71 const gfx::Size& size); | 71 const gfx::Size& size); |
| 72 | 72 |
| 73 // Creates a GL surface used for offscreen rendering without initializing it. | |
| 74 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateUninitializedOffscreenGLSurface( | |
| 75 const gfx::Size& size); | |
|
piman
2016/11/16 00:44:02
So, it sounds like the only reason you want to not
klausw
2017/01/05 02:17:43
I briefly tried this but it caused a bunch of comp
| |
| 76 | |
| 73 } // namespace init | 77 } // namespace init |
| 74 } // namespace gl | 78 } // namespace gl |
| 75 | 79 |
| 76 #endif // UI_GL_INIT_GL_FACTORY_H_ | 80 #endif // UI_GL_INIT_GL_FACTORY_H_ |
| OLD | NEW |