diff options
author | dongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 01:48:46 +0000 |
---|---|---|
committer | dongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 01:48:46 +0000 |
commit | 58acf4d3620f8e237d0df554449cb5e9978bc7d4 (patch) | |
tree | 86162d88f5ba0fdd0e41ba3028c36a7e495dbe12 /webkit | |
parent | 8e4fa9a0db814e293228c9910c39b92224719064 (diff) | |
download | chromium_src-58acf4d3620f8e237d0df554449cb5e9978bc7d4.zip chromium_src-58acf4d3620f8e237d0df554449cb5e9978bc7d4.tar.gz chromium_src-58acf4d3620f8e237d0df554449cb5e9978bc7d4.tar.bz2 |
Remove unused methods in WebGraphicsContext3D: isGLES2Compliant() and getPlatformTextureId()
BUG=
Review URL: https://chromiumcodereview.appspot.com/16200002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
4 files changed, 0 insertions, 32 deletions
diff --git a/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc index b230e06..1a16686 100644 --- a/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc +++ b/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc @@ -111,11 +111,6 @@ class GLInProcessContext { const int32* attrib_list, gfx::GpuPreference gpu_preference); - // For an offscreen frame buffer GLInProcessContext, return the texture ID - // with respect to the parent GLInProcessContext. Returns zero if - // GLInProcessContext does not have a parent. - uint32 GetParentTextureId(); - // Create a new texture in the parent's GLInProcessContext. Returns zero if // GLInProcessContext does not have a parent. uint32 CreateParentTexture(const gfx::Size& size); @@ -400,10 +395,6 @@ bool GLInProcessContext::GetBufferChanged(int32 transfer_buffer_id) { return gpu_scheduler_->SetGetBuffer(transfer_buffer_id); } -uint32 GLInProcessContext::GetParentTextureId() { - return 0; -} - uint32 GLInProcessContext::CreateParentTexture(const gfx::Size& size) { uint32 texture = 0; gles2_implementation_->GenTextures(1, &texture); @@ -935,20 +926,11 @@ int WebGraphicsContext3DInProcessCommandBufferImpl::height() { return cached_height_; } -bool WebGraphicsContext3DInProcessCommandBufferImpl::isGLES2Compliant() { - return true; -} - bool WebGraphicsContext3DInProcessCommandBufferImpl::setParentContext( WebGraphicsContext3D* parent_context) { return false; } -WebGLId WebGraphicsContext3DInProcessCommandBufferImpl::getPlatformTextureId() { - DCHECK(context_); - return context_->GetParentTextureId(); -} - void WebGraphicsContext3DInProcessCommandBufferImpl::prepareTexture() { // Copies the contents of the off-screen render target into the texture // used by the compositor. diff --git a/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h b/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h index de1ef9f..f7f88a1 100644 --- a/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h +++ b/webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h @@ -73,8 +73,6 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl virtual int width(); virtual int height(); - virtual bool isGLES2Compliant(); - virtual bool setParentContext(WebGraphicsContext3D* parent_context); virtual void reshape(int width, int height); @@ -84,7 +82,6 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, WebGLId framebuffer, int width, int height); - virtual WebGLId getPlatformTextureId(); virtual void prepareTexture(); virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); diff --git a/webkit/common/gpu/webgraphicscontext3d_in_process_impl.cc b/webkit/common/gpu/webgraphicscontext3d_in_process_impl.cc index 782a750..7cb9e7c 100644 --- a/webkit/common/gpu/webgraphicscontext3d_in_process_impl.cc +++ b/webkit/common/gpu/webgraphicscontext3d_in_process_impl.cc @@ -279,19 +279,11 @@ int WebGraphicsContext3DInProcessImpl::height() { return cached_height_; } -bool WebGraphicsContext3DInProcessImpl::isGLES2Compliant() { - return is_gles2_; -} - bool WebGraphicsContext3DInProcessImpl::setParentContext( WebGraphicsContext3D* parent_context) { return false; } -WebGLId WebGraphicsContext3DInProcessImpl::getPlatformTextureId() { - return texture_; -} - void WebGraphicsContext3DInProcessImpl::prepareTexture() { if (!gl_surface_->IsOffscreen()) { gl_surface_->SwapBuffers(); diff --git a/webkit/common/gpu/webgraphicscontext3d_in_process_impl.h b/webkit/common/gpu/webgraphicscontext3d_in_process_impl.h index 4a26265..c21812a 100644 --- a/webkit/common/gpu/webgraphicscontext3d_in_process_impl.h +++ b/webkit/common/gpu/webgraphicscontext3d_in_process_impl.h @@ -73,8 +73,6 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessImpl : virtual int width(); virtual int height(); - virtual bool isGLES2Compliant(); - virtual bool setParentContext(WebGraphicsContext3D* parent_context); virtual void reshape(int width, int height); @@ -85,7 +83,6 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessImpl : virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size, WebGLId framebuffer, int width, int height); - virtual WebGLId getPlatformTextureId(); virtual void prepareTexture(); virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); |