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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 1833273002: Remove WebGraphicsContext3D::getGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getgles2: rebase Created 4 years, 9 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
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698