diff options
author | orglofch <orglofch@chromium.org> | 2014-11-07 11:51:12 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-07 19:51:46 +0000 |
commit | cad5a674fe07d08bb8a775da0cb2a555eb796e6e (patch) | |
tree | 4e96c66d2afa7e4a186bba7bfb79ae4f4b47620a /webkit | |
parent | f2d6fd8f14b22b4b15e5e8fd3ac2bb8141bef552 (diff) | |
download | chromium_src-cad5a674fe07d08bb8a775da0cb2a555eb796e6e.zip chromium_src-cad5a674fe07d08bb8a775da0cb2a555eb796e6e.tar.gz chromium_src-cad5a674fe07d08bb8a775da0cb2a555eb796e6e.tar.bz2 |
Add subscribeUniform extension pipeline
BUG=422978
Committed: https://crrev.com/80b40cc8eab5e6bef6221c0bc5c1d006059acd8f
Cr-Commit-Position: refs/heads/master@{#303050}
Review URL: https://codereview.chromium.org/659903002
Cr-Commit-Position: refs/heads/master@{#303275}
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/common/gpu/webgraphicscontext3d_impl.cc | 41 | ||||
-rw-r--r-- | webkit/common/gpu/webgraphicscontext3d_impl.h | 12 |
2 files changed, 53 insertions, 0 deletions
diff --git a/webkit/common/gpu/webgraphicscontext3d_impl.cc b/webkit/common/gpu/webgraphicscontext3d_impl.cc index 3625de5..9e42509 100644 --- a/webkit/common/gpu/webgraphicscontext3d_impl.cc +++ b/webkit/common/gpu/webgraphicscontext3d_impl.cc @@ -846,6 +846,47 @@ DELEGATE_TO_GL_2R(createAndConsumeTextureCHROMIUM, CreateAndConsumeTextureCHROMIUM, WGC3Denum, const WGC3Dbyte*, WebGLId) +DELEGATE_TO_GL_2(genValuebuffersCHROMIUM, + GenValuebuffersCHROMIUM, + WGC3Dsizei, + WebGLId*); + +WebGLId WebGraphicsContext3DImpl::createValuebufferCHROMIUM() { + GLuint o; + gl_->GenValuebuffersCHROMIUM(1, &o); + return o; +} + +DELEGATE_TO_GL_2(deleteValuebuffersCHROMIUM, + DeleteValuebuffersCHROMIUM, + WGC3Dsizei, + WebGLId*); + +void WebGraphicsContext3DImpl::deleteValuebufferCHROMIUM(WebGLId valuebuffer) { + gl_->DeleteValuebuffersCHROMIUM(1, &valuebuffer); +} + +DELEGATE_TO_GL_1RB(isValuebufferCHROMIUM, + IsValuebufferCHROMIUM, + WebGLId, + WGC3Dboolean) +DELEGATE_TO_GL_2(bindValuebufferCHROMIUM, + BindValuebufferCHROMIUM, + WGC3Denum, + WebGLId) +DELEGATE_TO_GL_2(subscribeValueCHROMIUM, + SubscribeValueCHROMIUM, + WGC3Denum, + WGC3Denum); +DELEGATE_TO_GL_1(populateSubscribedValuesCHROMIUM, + PopulateSubscribedValuesCHROMIUM, + WGC3Denum); +DELEGATE_TO_GL_3(uniformValuebufferCHROMIUM, + UniformValuebufferCHROMIUM, + WGC3Dint, + WGC3Denum, + WGC3Denum); + void WebGraphicsContext3DImpl::insertEventMarkerEXT( const WGC3Dchar* marker) { gl_->InsertEventMarkerEXT(0, marker); diff --git a/webkit/common/gpu/webgraphicscontext3d_impl.h b/webkit/common/gpu/webgraphicscontext3d_impl.h index ee3cb36..3ed0dd9 100644 --- a/webkit/common/gpu/webgraphicscontext3d_impl.h +++ b/webkit/common/gpu/webgraphicscontext3d_impl.h @@ -483,6 +483,18 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl virtual WebGLId createAndConsumeTextureCHROMIUM(WGC3Denum target, const WGC3Dbyte* mailbox); + virtual void genValuebuffersCHROMIUM(WGC3Dsizei count, WebGLId* ids); + virtual WebGLId createValuebufferCHROMIUM(); + virtual void deleteValuebuffersCHROMIUM(WGC3Dsizei count, WebGLId* ids); + virtual void deleteValuebufferCHROMIUM(WebGLId); + virtual void bindValuebufferCHROMIUM(WGC3Denum target, WebGLId valuebuffer); + virtual WGC3Dboolean isValuebufferCHROMIUM(WebGLId renderbuffer); + virtual void subscribeValueCHROMIUM(WGC3Denum target, WGC3Denum subscription); + virtual void populateSubscribedValuesCHROMIUM(WGC3Denum target); + virtual void uniformValuebufferCHROMIUM(WGC3Dint location, + WGC3Denum target, + WGC3Denum subscription); + virtual void insertEventMarkerEXT(const WGC3Dchar* marker); virtual void pushGroupMarkerEXT(const WGC3Dchar* marker); virtual void popGroupMarkerEXT(); |