diff options
author | jvanverth <jvanverth@google.com> | 2016-09-30 08:39:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-30 08:39:03 -0700 |
commit | 84741b308496409f4ff662658167221fc6801bbe (patch) | |
tree | c2a42e12fdf9083453bbc46c28d561208162d2d7 /include/gpu/gl | |
parent | 714750595581167b965e1530d6aae052818ad52a (diff) |
Add fence support for TransferBuffers
BUG=skia:4604
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2384463003
Review-Url: https://codereview.chromium.org/2384463003
Diffstat (limited to 'include/gpu/gl')
-rw-r--r-- | include/gpu/gl/GrGLFunctions.h | 5 | ||||
-rw-r--r-- | include/gpu/gl/GrGLInterface.h | 5 | ||||
-rw-r--r-- | include/gpu/gl/GrGLTypes.h | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/include/gpu/gl/GrGLFunctions.h b/include/gpu/gl/GrGLFunctions.h index 7e720cd867..eccd1bf002 100644 --- a/include/gpu/gl/GrGLFunctions.h +++ b/include/gpu/gl/GrGLFunctions.h @@ -345,6 +345,11 @@ typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLFlushMappedNamedBufferRangeProc)(GrGL // OpenGL 3.1 typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLTextureBufferProc)(GrGLuint texture, GrGLenum target, GrGLenum internalformat, GrGLuint buffer); +/* ARB_sync */ +typedef GrGLsync (GR_GL_FUNCTION_TYPE* GrGLFenceSyncProc)(GrGLenum condition, GrGLbitfield flags); +typedef GrGLenum (GR_GL_FUNCTION_TYPE* GrGLClientWaitSyncProc)(GrGLsync sync, GrGLbitfield flags, GrGLuint64 timeout); +typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDeleteSyncProc)(GrGLsync sync); + /* KHR_debug */ typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDebugMessageControlProc)(GrGLenum source, GrGLenum type, GrGLenum severity, GrGLsizei count, const GrGLuint* ids, GrGLboolean enabled); typedef GrGLvoid (GR_GL_FUNCTION_TYPE* GrGLDebugMessageInsertProc)(GrGLenum source, GrGLenum type, GrGLuint id, GrGLenum severity, GrGLsizei length, const GrGLchar* buf); diff --git a/include/gpu/gl/GrGLInterface.h b/include/gpu/gl/GrGLInterface.h index 27184adcb5..60109ec187 100644 --- a/include/gpu/gl/GrGLInterface.h +++ b/include/gpu/gl/GrGLInterface.h @@ -452,6 +452,11 @@ public: // OpenGL 3.1 GrGLFunction<GrGLTextureBufferProc> fTextureBuffer; + /* ARB_sync */ + GrGLFunction<GrGLFenceSyncProc> fFenceSync; + GrGLFunction<GrGLClientWaitSyncProc> fClientWaitSync; + GrGLFunction<GrGLDeleteSyncProc> fDeleteSync; + /* KHR_debug */ GrGLFunction<GrGLDebugMessageControlProc> fDebugMessageControl; GrGLFunction<GrGLDebugMessageInsertProc> fDebugMessageInsert; diff --git a/include/gpu/gl/GrGLTypes.h b/include/gpu/gl/GrGLTypes.h index d0edcf101e..5b9e31de1a 100644 --- a/include/gpu/gl/GrGLTypes.h +++ b/include/gpu/gl/GrGLTypes.h @@ -58,6 +58,7 @@ typedef signed long int GrGLintptr; typedef signed long int GrGLsizeiptr; #endif typedef void* GrGLeglImage; +typedef void* GrGLsync; struct GrGLDrawArraysIndirectCommand { GrGLuint fCount; |