Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: ui/gl/init/gl_factory.h

Issue 2456213002: WebVR: implement SetSurfaceHandleCHROMIUM extension for gvr_device.
Patch Set: Rebase, set dependency. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #if defined(USE_OZONE) 61 #if defined(USE_OZONE)
62 // Creates a GL surface that renders directly into a window with surfaceless 62 // Creates a GL surface that renders directly into a window with surfaceless
63 // semantics - there is no default framebuffer and the primary surface must 63 // semantics - there is no default framebuffer and the primary surface must
64 // be presented as an overlay. If surfaceless mode is not supported or 64 // be presented as an overlay. If surfaceless mode is not supported or
65 // enabled it will return a null pointer. 65 // enabled it will return a null pointer.
66 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface( 66 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface(
67 gfx::AcceleratedWidget window); 67 gfx::AcceleratedWidget window);
68 #endif // defined(USE_OZONE) 68 #endif // defined(USE_OZONE)
69 69
70 // Creates a GL surface used for offscreen rendering. 70 // Creates a GL surface used for offscreen rendering.
71 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateUninitializedOffscreenGLSurface(
72 const gfx::Size& size);
71 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface( 73 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurface(
72 const gfx::Size& size); 74 const gfx::Size& size);
73 75
74 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurfaceWithFormat( 76 GL_INIT_EXPORT scoped_refptr<GLSurface> CreateOffscreenGLSurfaceWithFormat(
75 const gfx::Size& size, GLSurfaceFormat format); 77 const gfx::Size& size, GLSurfaceFormat format);
76 78
77 } // namespace init 79 } // namespace init
78 } // namespace gl 80 } // namespace gl
79 81
80 #endif // UI_GL_INIT_GL_FACTORY_H_ 82 #endif // UI_GL_INIT_GL_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698