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

Unified Diff: media/renderers/skcanvas_video_renderer.h

Issue 2127053004: Optimize webgl texImage2D from YUV video textures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@skianocopy
Patch Set: Created 4 years, 5 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/renderers/skcanvas_video_renderer.h
diff --git a/media/renderers/skcanvas_video_renderer.h b/media/renderers/skcanvas_video_renderer.h
index 9c6d23c7481760ad7a309dac44adfe605c1b073c..0d8ad565b3701bf8985ac02043de37f6db58da1b 100644
--- a/media/renderers/skcanvas_video_renderer.h
+++ b/media/renderers/skcanvas_video_renderer.h
@@ -66,11 +66,15 @@ class MEDIA_EXPORT SkCanvasVideoRenderer {
void* rgb_pixels,
size_t row_bytes);
- // Copy the contents of texture of |video_frame| to texture |texture|.
+ // Copy the contents of texture of |video_frame| to texture |texture| in
+ // context |destination_gl|.
// |level|, |internal_format|, |type| specify target texture |texture|.
// The format of |video_frame| must be VideoFrame::NATIVE_TEXTURE.
- static void CopyVideoFrameSingleTextureToGLTexture(
- gpu::gles2::GLES2Interface* gl,
+ // |context_3d| has a GrContext that may be used during the copy.
+ // Returns true on success.
+ static bool CopyVideoFrameTexturesToGLTexture(
+ const Context3D& context_3d,
+ gpu::gles2::GLES2Interface* destination_gl,
VideoFrame* video_frame,
unsigned int texture,
unsigned int internal_format,

Powered by Google App Engine
This is Rietveld 408576698