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

Unified Diff: ui/gl/gl_surface_egl.h

Issue 13886018: Add a factory and defines for native Linux surfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: vsync provider, better transport_dib, etc. Created 7 years, 7 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
Index: ui/gl/gl_surface_egl.h
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h
index 6440504846c9f55924b2dd4040af8bf68cdaaf89..668ca15d57131f13e4c40ef92bb1f1c2313a3573 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -40,6 +40,7 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface {
static const char* GetEGLExtensions();
static bool HasEGLExtension(const char* name);
static bool IsCreateContextRobustnessSupported();
+ static bool IsSyncControlSupported();
protected:
virtual ~GLSurfaceEGL();
@@ -58,6 +59,7 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
// Implement GLSurface.
virtual EGLConfig GetConfig() OVERRIDE;
virtual bool Initialize() OVERRIDE;
+ virtual bool Initialize(VSyncProvider* syncProvider) OVERRIDE;
virtual void Destroy() OVERRIDE;
virtual bool Resize(const gfx::Size& size) OVERRIDE;
virtual bool Recreate() OVERRIDE;
@@ -69,6 +71,7 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
virtual VSyncProvider* GetVSyncProvider() OVERRIDE;
+
protected:
virtual ~NativeViewGLSurfaceEGL();
void SetHandle(EGLSurface surface);

Powered by Google App Engine
This is Rietveld 408576698