Commit 0a7758e2 authored by piman@chromium.org's avatar piman@chromium.org

Add GL_CHROMIUM_texture_mailbox entrypoints to wgc3d implementations

BUG=131275


Review URL: https://chromiumcodereview.appspot.com/10829209

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150241 0039d316-1c4b-4281-b951-d872f2087c98
parent 52f66a45
...@@ -945,10 +945,6 @@ void WebGraphicsContext3DCommandBufferImpl::flush() { ...@@ -945,10 +945,6 @@ void WebGraphicsContext3DCommandBufferImpl::flush() {
gl_->FreeEverything(); gl_->FreeEverything();
} }
void WebGraphicsContext3DCommandBufferImpl::shallowFlushCHROMIUM() {
gl_->ShallowFlushCHROMIUM();
}
DELEGATE_TO_GL_4(framebufferRenderbuffer, FramebufferRenderbuffer, DELEGATE_TO_GL_4(framebufferRenderbuffer, FramebufferRenderbuffer,
WGC3Denum, WGC3Denum, WGC3Denum, WebGLId) WGC3Denum, WGC3Denum, WGC3Denum, WebGLId)
...@@ -1536,6 +1532,14 @@ DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum, ...@@ -1536,6 +1532,14 @@ DELEGATE_TO_GL_5(copyTextureCHROMIUM, CopyTextureCHROMIUM, WGC3Denum,
DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM,
WebGLId, WGC3Dint, const WGC3Dchar*) WebGLId, WGC3Dint, const WGC3Dchar*)
DELEGATE_TO_GL(shallowFlushCHROMIUM,ShallowFlushCHROMIUM);
DELEGATE_TO_GL_1(genMailboxCHROMIUM, GenMailboxCHROMIUM, WGC3Dbyte*)
DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM,
WGC3Denum, const WGC3Dbyte*)
DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM,
WGC3Denum, const WGC3Dbyte*)
GrGLInterface* WebGraphicsContext3DCommandBufferImpl::onCreateGrGLInterface() { GrGLInterface* WebGraphicsContext3DCommandBufferImpl::onCreateGrGLInterface() {
return webkit_glue::CreateCommandBufferSkiaGLBinding(); return webkit_glue::CreateCommandBufferSkiaGLBinding();
} }
......
...@@ -41,6 +41,7 @@ class GLES2Implementation; ...@@ -41,6 +41,7 @@ class GLES2Implementation;
using WebKit::WebGLId; using WebKit::WebGLId;
using WebKit::WGC3Dbyte;
using WebKit::WGC3Dchar; using WebKit::WGC3Dchar;
using WebKit::WGC3Denum; using WebKit::WGC3Denum;
using WebKit::WGC3Dboolean; using WebKit::WGC3Dboolean;
...@@ -247,7 +248,6 @@ class WebGraphicsContext3DCommandBufferImpl ...@@ -247,7 +248,6 @@ class WebGraphicsContext3DCommandBufferImpl
virtual void enableVertexAttribArray(WGC3Duint index); virtual void enableVertexAttribArray(WGC3Duint index);
virtual void finish(); virtual void finish();
virtual void flush(); virtual void flush();
virtual void shallowFlushCHROMIUM();
virtual void framebufferRenderbuffer(WGC3Denum target, virtual void framebufferRenderbuffer(WGC3Denum target,
WGC3Denum attachment, WGC3Denum attachment,
WGC3Denum renderbuffertarget, WGC3Denum renderbuffertarget,
...@@ -574,6 +574,14 @@ class WebGraphicsContext3DCommandBufferImpl ...@@ -574,6 +574,14 @@ class WebGraphicsContext3DCommandBufferImpl
virtual void bindUniformLocationCHROMIUM(WebGLId program, WGC3Dint location, virtual void bindUniformLocationCHROMIUM(WebGLId program, WGC3Dint location,
const WGC3Dchar* uniform); const WGC3Dchar* uniform);
virtual void shallowFlushCHROMIUM();
virtual void genMailboxCHROMIUM(WGC3Dbyte* mailbox);
virtual void produceTextureCHROMIUM(WGC3Denum target,
const WGC3Dbyte* mailbox);
virtual void consumeTextureCHROMIUM(WGC3Denum target,
const WGC3Dbyte* mailbox);
protected: protected:
virtual GrGLInterface* onCreateGrGLInterface(); virtual GrGLInterface* onCreateGrGLInterface();
......
...@@ -1643,5 +1643,11 @@ DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM, ...@@ -1643,5 +1643,11 @@ DELEGATE_TO_GL_3(bindUniformLocationCHROMIUM, BindUniformLocationCHROMIUM,
DELEGATE_TO_GL(shallowFlushCHROMIUM, ShallowFlushCHROMIUM) DELEGATE_TO_GL(shallowFlushCHROMIUM, ShallowFlushCHROMIUM)
DELEGATE_TO_GL_1(genMailboxCHROMIUM, GenMailboxCHROMIUM, WGC3Dbyte*)
DELEGATE_TO_GL_2(produceTextureCHROMIUM, ProduceTextureCHROMIUM,
WGC3Denum, const WGC3Dbyte*)
DELEGATE_TO_GL_2(consumeTextureCHROMIUM, ConsumeTextureCHROMIUM,
WGC3Denum, const WGC3Dbyte*)
} // namespace gpu } // namespace gpu
} // namespace webkit } // namespace webkit
...@@ -26,6 +26,7 @@ class GLES2Implementation; ...@@ -26,6 +26,7 @@ class GLES2Implementation;
using WebKit::WebGLId; using WebKit::WebGLId;
using WebKit::WGC3Dbyte;
using WebKit::WGC3Dchar; using WebKit::WGC3Dchar;
using WebKit::WGC3Denum; using WebKit::WGC3Denum;
using WebKit::WGC3Dboolean; using WebKit::WGC3Dboolean;
...@@ -483,6 +484,12 @@ class WebGraphicsContext3DInProcessCommandBufferImpl ...@@ -483,6 +484,12 @@ class WebGraphicsContext3DInProcessCommandBufferImpl
virtual void shallowFlushCHROMIUM(); virtual void shallowFlushCHROMIUM();
virtual void genMailboxCHROMIUM(WGC3Dbyte* mailbox);
virtual void produceTextureCHROMIUM(WGC3Denum target,
const WGC3Dbyte* mailbox);
virtual void consumeTextureCHROMIUM(WGC3Denum target,
const WGC3Dbyte* mailbox);
protected: protected:
virtual GrGLInterface* onCreateGrGLInterface(); virtual GrGLInterface* onCreateGrGLInterface();
......
...@@ -752,6 +752,21 @@ void WebGraphicsContext3DInProcessImpl::bindUniformLocationCHROMIUM( ...@@ -752,6 +752,21 @@ void WebGraphicsContext3DInProcessImpl::bindUniformLocationCHROMIUM(
NOTIMPLEMENTED(); NOTIMPLEMENTED();
} }
void WebGraphicsContext3DInProcessImpl::genMailboxCHROMIUM(
WGC3Dbyte* mailbox) {
NOTIMPLEMENTED();
}
void WebGraphicsContext3DInProcessImpl::produceTextureCHROMIUM(
WGC3Denum target, const WGC3Dbyte* mailbox) {
NOTIMPLEMENTED();
}
void WebGraphicsContext3DInProcessImpl::consumeTextureCHROMIUM(
WGC3Denum target, const WGC3Dbyte* mailbox) {
NOTIMPLEMENTED();
}
WebString WebGraphicsContext3DInProcessImpl:: WebString WebGraphicsContext3DInProcessImpl::
getRequestableExtensionsCHROMIUM() { getRequestableExtensionsCHROMIUM() {
return WebString(); return WebString();
......
...@@ -24,6 +24,7 @@ class GLSurface; ...@@ -24,6 +24,7 @@ class GLSurface;
class GLShareGroup; class GLShareGroup;
} }
using WebKit::WGC3Dbyte;
using WebKit::WGC3Dchar; using WebKit::WGC3Dchar;
using WebKit::WGC3Denum; using WebKit::WGC3Denum;
using WebKit::WGC3Dboolean; using WebKit::WGC3Dboolean;
...@@ -482,6 +483,12 @@ class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D { ...@@ -482,6 +483,12 @@ class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D {
// Only applies to contexts that use the command buffer. // Only applies to contexts that use the command buffer.
virtual void shallowFlushCHROMIUM() { } virtual void shallowFlushCHROMIUM() { }
virtual void genMailboxCHROMIUM(WGC3Dbyte* mailbox);
virtual void produceTextureCHROMIUM(WGC3Denum target,
const WGC3Dbyte* mailbox);
virtual void consumeTextureCHROMIUM(WGC3Denum target,
const WGC3Dbyte* mailbox);
protected: protected:
virtual GrGLInterface* onCreateGrGLInterface(); virtual GrGLInterface* onCreateGrGLInterface();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment