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, |