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

Unified Diff: ui/gl/init/gl_factory.h

Issue 2710183004: Support GPU VSync when DirectComposition isn't enabled (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/service/image_transport_surface_win.cc ('k') | ui/gl/init/gl_factory_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « gpu/ipc/service/image_transport_surface_win.cc ('k') | ui/gl/init/gl_factory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698