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

Unified Diff: ui/gl/gl_gl_api_implementation.h

Issue 197563003: gpu: Allow fences to check whether a flush has occurred (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: line brk Created 6 years, 9 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 | « ui/gl/gl_fence.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_gl_api_implementation.h
diff --git a/ui/gl/gl_gl_api_implementation.h b/ui/gl/gl_gl_api_implementation.h
index c87dbd1de088e0d684805ca9ec1b9febc461f46a..e764ec3ce3d4afb241c7f5062185537e1586c91f 100644
--- a/ui/gl/gl_gl_api_implementation.h
+++ b/ui/gl/gl_gl_api_implementation.h
@@ -41,6 +41,7 @@ class GL_EXPORT GLApiBase : public GLApi {
GLApiBase();
virtual ~GLApiBase();
void InitializeBase(DriverGL* driver);
+ void SignalFlush();
DriverGL* driver_;
};
@@ -51,6 +52,10 @@ class GL_EXPORT RealGLApi : public GLApiBase {
RealGLApi();
virtual ~RealGLApi();
void Initialize(DriverGL* driver);
+
+ private:
+ virtual void glFinishFn() OVERRIDE;
+ virtual void glFlushFn() OVERRIDE;
};
// Inserts a TRACE for every GL call.
@@ -82,10 +87,12 @@ class GL_EXPORT VirtualGLApi : public GLApiBase {
void OnReleaseVirtuallyCurrent(GLContext* virtual_context);
+private:
// Overridden functions from GLApiBase
virtual const GLubyte* glGetStringFn(GLenum name) OVERRIDE;
+ virtual void glFinishFn() OVERRIDE;
+ virtual void glFlushFn() OVERRIDE;
- private:
// The real context we're running on.
GLContext* real_context_;
« no previous file with comments | « ui/gl/gl_fence.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698