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

Unified Diff: media/blink/skcanvas_video_renderer.h

Issue 1315323006: webgl: optimize webgl.texSubImage2D(video) path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: media/blink/skcanvas_video_renderer.h
diff --git a/media/blink/skcanvas_video_renderer.h b/media/blink/skcanvas_video_renderer.h
index c2e70ea27d91ad25d177857c6e97fde0f32a1d0d..345330440fef78f6bfaa34d418c42226bfff5b94 100644
--- a/media/blink/skcanvas_video_renderer.h
+++ b/media/blink/skcanvas_video_renderer.h
@@ -66,9 +66,21 @@ class MEDIA_EXPORT SkCanvasVideoRenderer {
static void CopyVideoFrameSingleTextureToGLTexture(
gpu::gles2::GLES2Interface* gl,
VideoFrame* video_frame,
+ unsigned int target,
unsigned int texture,
unsigned int internal_format,
unsigned int type,
+ int level,
+ bool premultiply_alpha,
+ bool flip_y);
+ static void CopySubVideoFrameSingleTextureToGLTexture(
oetuaho-nv 2015/10/01 07:46:21 Same naming issue here. Would rather use "CopyVide
dshwang 2015/10/21 16:12:15 ditto.
+ gpu::gles2::GLES2Interface* gl,
+ VideoFrame* video_frame,
+ unsigned int target,
+ unsigned int texture,
+ int level,
+ int xoffset,
+ int yoffset,
bool premultiply_alpha,
bool flip_y);

Powered by Google App Engine
This is Rietveld 408576698