summaryrefslogtreecommitdiffstats
path: root/gpu/GLES2
diff options
context:
space:
mode:
authorepenner@chromium.org <epenner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-05 17:02:16 +0000
committerepenner@chromium.org <epenner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-05 17:02:16 +0000
commita00c1f740cfb38366779505071ed97e7b60dc9fe (patch)
tree8e0a3a8b3c42bdd1495cbf799bd2297048d9b3b9 /gpu/GLES2
parentc566a3ba438dd3cb28a115e1ffeb9687bfda2806 (diff)
downloadchromium_src-a00c1f740cfb38366779505071ed97e7b60dc9fe.zip
chromium_src-a00c1f740cfb38366779505071ed97e7b60dc9fe.tar.gz
chromium_src-a00c1f740cfb38366779505071ed97e7b60dc9fe.tar.bz2
gpu: Add the ability to wait on upload completion.
Patch originally by Eric Penner <epenner@chromium.org>. We currently have high latency if need to wait for uploads in the renderer client. If we can do a shallow client side wait it will be much better. This is effectively the same as doing synchronous uploads, but exposes less driver bug surface area then mixing uploads across threads. BUG=161828, 178634 Review URL: https://chromiumcodereview.appspot.com/12210129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/GLES2')
-rw-r--r--gpu/GLES2/gl2chromium_autogen.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpu/GLES2/gl2chromium_autogen.h b/gpu/GLES2/gl2chromium_autogen.h
index bda7202..f997f2f 100644
--- a/gpu/GLES2/gl2chromium_autogen.h
+++ b/gpu/GLES2/gl2chromium_autogen.h
@@ -219,6 +219,8 @@
#define glTraceEndCHROMIUM GLES2_GET_FUN(TraceEndCHROMIUM)
#define glAsyncTexSubImage2DCHROMIUM GLES2_GET_FUN(AsyncTexSubImage2DCHROMIUM)
#define glAsyncTexImage2DCHROMIUM GLES2_GET_FUN(AsyncTexImage2DCHROMIUM)
+#define glWaitAsyncTexImage2DCHROMIUM GLES2_GET_FUN( \
+ WaitAsyncTexImage2DCHROMIUM)
#define glDiscardFramebufferEXT GLES2_GET_FUN(DiscardFramebufferEXT)
#define glLoseContextCHROMIUM GLES2_GET_FUN(LoseContextCHROMIUM)
#define glWaitSyncPointCHROMIUM GLES2_GET_FUN(WaitSyncPointCHROMIUM)