diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc | 28 | ||||
-rw-r--r-- | chrome/renderer/webgraphicscontext3d_command_buffer_impl.h | 4 |
2 files changed, 0 insertions, 32 deletions
diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc index 4892185..84204da 100644 --- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc +++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc @@ -330,29 +330,6 @@ void WebGraphicsContext3DCommandBufferImpl::synthesizeGLError( } } -static bool supports_extension(const char *ext_name) { - const char* extensions = (const char *) glGetString(GL_EXTENSIONS); - CStringTokenizer t(extensions, extensions + strlen(extensions), " "); - while (t.GetNext()) { - if (t.token() == ext_name) { - return true; - } - } - return false; -} - -bool WebGraphicsContext3DCommandBufferImpl::supportsBGRA() { - static bool is_supported = - supports_extension("GL_EXT_texture_format_BGRA8888") && - supports_extension("GL_EXT_read_format_bgra"); - return is_supported; -} - -bool WebGraphicsContext3DCommandBufferImpl::supportsMapSubCHROMIUM() { - static bool is_supported = supports_extension("GL_CHROMIUM_map_sub"); - return is_supported; -} - void* WebGraphicsContext3DCommandBufferImpl::mapBufferSubDataCHROMIUM( unsigned target, int offset, @@ -385,11 +362,6 @@ void WebGraphicsContext3DCommandBufferImpl::unmapTexSubImage2DCHROMIUM( glUnmapTexSubImage2D(mem); } -bool WebGraphicsContext3DCommandBufferImpl:: - supportsCopyTextureToParentTextureCHROMIUM() { - return true; -} - void WebGraphicsContext3DCommandBufferImpl::copyTextureToParentTextureCHROMIUM( unsigned texture, unsigned parentTexture) { copyTextureToCompositor(texture, parentTexture); diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.h b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.h index 11369d7..481ee2d 100644 --- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.h +++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.h @@ -340,9 +340,7 @@ class WebGraphicsContext3DCommandBufferImpl virtual void deleteTexture(unsigned); virtual void synthesizeGLError(unsigned long error); - virtual bool supportsBGRA(); // TODO(kbr): remove - virtual bool supportsMapSubCHROMIUM(); // TODO(kbr): remove virtual void* mapBufferSubDataCHROMIUM( unsigned target, int offset, int size, unsigned access); virtual void unmapBufferSubDataCHROMIUM(const void*); @@ -358,8 +356,6 @@ class WebGraphicsContext3DCommandBufferImpl unsigned access); virtual void unmapTexSubImage2DCHROMIUM(const void*); - // TODO(kbr): remove supportsCopyTextureToParentTextureCHROMIUM - virtual bool supportsCopyTextureToParentTextureCHROMIUM(); virtual void copyTextureToParentTextureCHROMIUM( unsigned texture, unsigned parentTexture); |