Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
index f209bd43f1eccbbc53ede0a4403f7225ece22784..47eae64de91e1ac45dbb06d051642e99d936729a 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp |
@@ -634,24 +634,6 @@ IntRect WebGL2RenderingContextBase::GetTextureSourceSubRectangle( |
return IntRect(unpack_skip_pixels_, unpack_skip_rows_, width, height); |
} |
-bool WebGL2RenderingContextBase::CanUseTexImageByGPU( |
- TexImageFunctionID function_id, |
- GLint internalformat, |
- GLenum type) { |
- switch (internalformat) { |
- case GL_RGB565: |
- case GL_RGBA4: |
- case GL_RGB5_A1: |
- // FIXME: ES3 limitation that CopyTexImage with sized internalformat, |
- // component sizes have to match the source color format. |
- return false; |
- default: |
- break; |
- } |
- return WebGLRenderingContextBase::CanUseTexImageByGPU(function_id, |
- internalformat, type); |
-} |
- |
void WebGL2RenderingContextBase::invalidateFramebuffer( |
GLenum target, |
const Vector<GLenum>& attachments) { |