Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(930)

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

Issue 2026803002: Avoid GPU readback in tex(Sub)Image2D(ImageBitmap) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address kbr@'s comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 1a18fb1c203f792eb9f5d95b68e5871fb2b1fd61..a9e385445ca571e19751445c30c55ba1890cf681 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -461,7 +461,7 @@ bool WebGL2RenderingContextBase::checkAndTranslateAttachments(const char* functi
return true;
}
-bool WebGL2RenderingContextBase::canUseTexImageCanvasByGPU(GLint internalformat, GLenum type)
+bool WebGL2RenderingContextBase::canUseTexImageByGPU(TexImageFunctionID functionID, GLint internalformat, GLenum type)
{
switch (internalformat) {
case GL_RGB565:
@@ -473,7 +473,7 @@ bool WebGL2RenderingContextBase::canUseTexImageCanvasByGPU(GLint internalformat,
default:
break;
}
- return WebGLRenderingContextBase::canUseTexImageCanvasByGPU(internalformat, type);
+ return WebGLRenderingContextBase::canUseTexImageByGPU(functionID, internalformat, type);
}
void WebGL2RenderingContextBase::invalidateFramebuffer(GLenum target, const Vector<GLenum>& attachments)

Powered by Google App Engine
This is Rietveld 408576698