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

Unified Diff: content/renderer/media/webmediaplayer_ms.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 | « content/renderer/media/webmediaplayer_ms.h ('k') | gpu/blink/webgraphicscontext3d_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webmediaplayer_ms.cc
diff --git a/content/renderer/media/webmediaplayer_ms.cc b/content/renderer/media/webmediaplayer_ms.cc
index 147715b9e7b6cdd9354b5fa2561d52163cecb497..35b6e9ba7d88dc4e5c0a632fde4e023f09a692ea 100644
--- a/content/renderer/media/webmediaplayer_ms.cc
+++ b/content/renderer/media/webmediaplayer_ms.cc
@@ -22,7 +22,6 @@
#include "content/renderer/media/webmediaplayer_ms_compositor.h"
#include "content/renderer/render_frame_impl.h"
#include "content/renderer/render_thread_impl.h"
-#include "gpu/blink/webgraphicscontext3d_impl.h"
#include "media/base/media_log.h"
#include "media/base/video_frame.h"
#include "third_party/WebKit/public/platform/WebMediaPlayerClient.h"
@@ -433,7 +432,7 @@ void WebMediaPlayerMS::OnVolumeMultiplierUpdate(double multiplier) {
}
bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture(
- blink::WebGraphicsContext3D* web_graphics_context,
+ gpu::gles2::GLES2Interface* gl,
unsigned int texture,
unsigned int internal_format,
unsigned int type,
@@ -449,11 +448,6 @@ bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture(
return false;
}
- // TODO(dshwang): need more elegant way to convert WebGraphicsContext3D to
- // GLES2Interface.
- gpu::gles2::GLES2Interface* const gl =
- static_cast<gpu_blink::WebGraphicsContext3DImpl*>(web_graphics_context)
- ->GetGLInterface();
media::SkCanvasVideoRenderer::CopyVideoFrameSingleTextureToGLTexture(
gl, video_frame.get(), texture, internal_format, type, premultiply_alpha,
flip_y);
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.h ('k') | gpu/blink/webgraphicscontext3d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698