Index: ui/gl/init/gl_factory.h |
diff --git a/ui/gl/init/gl_factory.h b/ui/gl/init/gl_factory.h |
index c3908fa5b8b8d936c21212b7275ccfd0e4ab84af..52dcbe1a074e064b85cb2e95d45f832e5900be56 100644 |
--- a/ui/gl/init/gl_factory.h |
+++ b/ui/gl/init/gl_factory.h |
@@ -5,6 +5,7 @@ |
#ifndef UI_GL_INIT_GL_FACTORY_H_ |
#define UI_GL_INIT_GL_FACTORY_H_ |
+#include <memory> |
#include <vector> |
#include "base/memory/ref_counted.h" |
@@ -15,6 +16,10 @@ |
#include "ui/gl/gpu_preference.h" |
#include "ui/gl/init/gl_init_export.h" |
+namespace gfx { |
+class VSyncProvider; |
+} // namespace gfx |
+ |
namespace gl { |
class GLContext; |
@@ -59,6 +64,13 @@ GL_INIT_EXPORT scoped_refptr<GLContext> CreateGLContext( |
GL_INIT_EXPORT scoped_refptr<GLSurface> CreateViewGLSurface( |
gfx::AcceleratedWidget window); |
+#if defined(OS_WIN) |
+// Creates a GL surface that renders directly into a native window. |
+GL_INIT_EXPORT scoped_refptr<GLSurface> CreateNativeViewGLSurfaceEGL( |
+ gfx::AcceleratedWidget window, |
+ std::unique_ptr<gfx::VSyncProvider> sync_provider); |
+#endif |
+ |
#if defined(USE_OZONE) |
// Creates a GL surface that renders directly into a window with surfaceless |
// semantics - there is no default framebuffer and the primary surface must |