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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h

Issue 1315323006: webgl: optimize webgl.texSubImage2D(video) path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to ToT Created 5 years, 2 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/WebGLRenderingContextBase.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
index 00ffa73496b3c1f7f9fc782e3442f28c908e2c75..dc406ac5913ea9a8a0196afb8ac114e19f5bb266 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
@@ -840,6 +840,9 @@ protected:
GLenum internalformat, GLenum type, GLint xoffset, GLint yoffset, GLint zoffset, HTMLCanvasElement*);
bool canUseTexImageCanvasByGPU(GLenum internalformat, GLenum type);
+ bool texImage2DVideoByGPU(TexImageFunctionType, WebGLTexture*, GLenum target, GLint level,
+ GLenum internalformat, GLenum type, GLint xoffset, GLint yoffset, HTMLVideoElement*);
+
void handleTextureCompleteness(const char*, bool);
void createFallbackBlackTextures1x1();

Powered by Google App Engine
This is Rietveld 408576698