summaryrefslogtreecommitdiffstats
path: root/webkit/gpu
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 07:01:11 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 07:01:11 +0000
commit4eb2f2630d82f0ebd859092a99c7e900dc9360f5 (patch)
tree15b5b20e24922099088ec14b47bf1300b7f3934e /webkit/gpu
parent40ebd495498f0a245df88985436250562c927aa7 (diff)
downloadchromium_src-4eb2f2630d82f0ebd859092a99c7e900dc9360f5.zip
chromium_src-4eb2f2630d82f0ebd859092a99c7e900dc9360f5.tar.gz
chromium_src-4eb2f2630d82f0ebd859092a99c7e900dc9360f5.tar.bz2
Revert 162654 - gpu: Add support for GLX_EXT_texture_from_pixmap extension.
Implement CHROMIUM_texture_from_image. This extension behaves just like EXT_texture_from_pixmap but uses chromium specific image identifiers rather than platform specific pixmap IDs. Add IPC message for creating an image identifier using a gfx::PluginWindowHandle. Each GPU channel maintains a different set of images and deleting an image will cause the internal image representation to be freed once it's no longer bound to a texture. BUG=132342 TEST=gpu_unittests --gtest_filter=TextureInfoTest.GetLevelImage:GLES2DecoderTest.BindTexImage2DCHROMIUM:GLES2DecoderTest.ReleaseTexImage2DCHROMIUM and manual Review URL: https://chromiumcodereview.appspot.com/10543125 TBR=reveman@chromium.org Review URL: https://codereview.chromium.org/11188053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/gpu')
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc8
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h3
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.cc10
-rw-r--r--webkit/gpu/webgraphicscontext3d_in_process_impl.h3
4 files changed, 1 insertions, 23 deletions
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
index 46403d7..e766332 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -414,8 +414,7 @@ bool GLInProcessContext::Initialize(const gfx::Size& size,
bool bind_generates_resource = false;
decoder_.reset(::gpu::gles2::GLES2Decoder::Create(context_group ?
context_group->decoder_->GetContextGroup() :
- new ::gpu::gles2::ContextGroup(
- NULL, NULL, NULL, bind_generates_resource)));
+ new ::gpu::gles2::ContextGroup(NULL, NULL, bind_generates_resource)));
gpu_scheduler_.reset(new GpuScheduler(command_buffer_.get(),
decoder_.get(),
@@ -1638,11 +1637,6 @@ void WebGraphicsContext3DInProcessCommandBufferImpl::pushGroupMarkerEXT(
DELEGATE_TO_GL(popGroupMarkerEXT, PopGroupMarkerEXT);
-DELEGATE_TO_GL_2(bindTexImage2DCHROMIUM, BindTexImage2DCHROMIUM,
- WGC3Denum, WGC3Dint)
-DELEGATE_TO_GL_2(releaseTexImage2DCHROMIUM, ReleaseTexImage2DCHROMIUM,
- WGC3Denum, WGC3Dint)
-
GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl::
onCreateGrGLInterface() {
return webkit_glue::CreateCommandBufferSkiaGLBinding();
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
index d4b0b3a..6dd92aa 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
@@ -461,9 +461,6 @@ class WebGraphicsContext3DInProcessCommandBufferImpl
WGC3Denum target, WGC3Dint width, WGC3Dint height,
WGC3Duint ioSurfaceId, WGC3Duint plane);
- virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId);
- virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId);
-
virtual void texStorage2DEXT(
WGC3Denum target, WGC3Dint levels, WGC3Duint internalformat,
WGC3Dint width, WGC3Dint height);
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
index ff11852..6decabf 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.cc
@@ -1698,16 +1698,6 @@ void WebGraphicsContext3DInProcessImpl::copyTextureCHROMIUM(
NOTIMPLEMENTED();
}
-void WebGraphicsContext3DInProcessImpl::bindTexImage2DCHROMIUM(
- WGC3Denum target, WGC3Dint imageId) {
- NOTIMPLEMENTED();
-}
-
-void WebGraphicsContext3DInProcessImpl::releaseTexImage2DCHROMIUM(
- WGC3Denum target, WGC3Dint imageId) {
- NOTIMPLEMENTED();
-}
-
GrGLInterface* WebGraphicsContext3DInProcessImpl::onCreateGrGLInterface() {
return gfx::CreateInProcessSkiaGLBinding();
}
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_impl.h b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
index eb0ed57..0b248ce 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_impl.h
+++ b/webkit/gpu/webgraphicscontext3d_in_process_impl.h
@@ -489,9 +489,6 @@ class WebGraphicsContext3DInProcessImpl : public WebGraphicsContext3D {
virtual void consumeTextureCHROMIUM(WGC3Denum target,
const WGC3Dbyte* mailbox);
- virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId);
- virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId);
-
protected:
virtual GrGLInterface* onCreateGrGLInterface();