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

Unified Diff: ui/gl/gl_surface_egl.h

Issue 14358014: gpu: Add EGL fence support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 17e6e9404ceb9fda2c1542d76bb968f9e2ade879..f70d0573b651b139fd7d98431f39312cdc4cd835 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -67,6 +67,7 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
virtual std::string GetExtensions() OVERRIDE;
virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
virtual VSyncProvider* GetVSyncProvider() OVERRIDE;
+ virtual void SetMaximumFrameLatency(unsigned int frames) OVERRIDE;
Sami 2013/04/24 10:44:18 We spoke with Daniel that maybe something like Set
no sievers 2013/04/24 12:23:53 In gles2_implementation.cc we call it 'MaxSwapBuff
epennerAtGoogle 2013/04/24 19:33:38 Okay. I stole this name from D3D :P I'll rename.
protected:
virtual ~NativeViewGLSurfaceEGL();
@@ -78,6 +79,9 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
bool supports_post_sub_buffer_;
EGLConfig config_;
+ std::deque<EGLSyncKHR> frame_fences_;
+ unsigned int max_frame_latency_;
+
scoped_ptr<VSyncProvider> vsync_provider_;
DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL);
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | ui/gl/gl_surface_egl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698