Index: media/blink/webmediaplayer_impl.cc |
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc |
index 6d8aa58fd6c246cc9b98d58affd31c9533bb53b3..bcc32c897537d8224ae65bc459795c36abb5a6bd 100644 |
--- a/media/blink/webmediaplayer_impl.cc |
+++ b/media/blink/webmediaplayer_impl.cc |
@@ -756,7 +756,7 @@ size_t WebMediaPlayerImpl::videoDecodedByteCount() const { |
} |
bool WebMediaPlayerImpl::copyVideoTextureToPlatformTexture( |
- blink::WebGraphicsContext3D* web_graphics_context, |
+ gpu::gles2::GLES2Interface* gl, |
unsigned int texture, |
unsigned int internal_format, |
unsigned int type, |
@@ -771,11 +771,6 @@ bool WebMediaPlayerImpl::copyVideoTextureToPlatformTexture( |
return false; |
} |
- // TODO(dshwang): need more elegant way to convert WebGraphicsContext3D to |
- // GLES2Interface. |
- gpu::gles2::GLES2Interface* gl = |
- static_cast<gpu_blink::WebGraphicsContext3DImpl*>(web_graphics_context) |
- ->GetGLInterface(); |
SkCanvasVideoRenderer::CopyVideoFrameSingleTextureToGLTexture( |
gl, video_frame.get(), texture, internal_format, type, premultiply_alpha, |
flip_y); |