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

Unified Diff: content/renderer/media/webmediaplayer_ms.cc

Issue 2562003003: Fix the size of video textures uploaded to WebGL. (Closed)
Patch Set: Created 4 years 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: content/renderer/media/webmediaplayer_ms.cc
diff --git a/content/renderer/media/webmediaplayer_ms.cc b/content/renderer/media/webmediaplayer_ms.cc
index 76d1e9f0552cac06872528298854cc7ae07dc2f0..45add74dedd70f9b0e3e4a7a61a6e0b14376cde4 100644
--- a/content/renderer/media/webmediaplayer_ms.cc
+++ b/content/renderer/media/webmediaplayer_ms.cc
@@ -579,8 +579,6 @@ void WebMediaPlayerMS::OnVolumeMultiplierUpdate(double multiplier) {
bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture(
gpu::gles2::GLES2Interface* gl,
unsigned int texture,
- unsigned int internal_format,
- unsigned int type,
bool premultiply_alpha,
bool flip_y) {
TRACE_EVENT0("media", "WebMediaPlayerMS:copyVideoTextureToPlatformTexture");
@@ -601,8 +599,7 @@ bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture(
context_3d = media::Context3D(provider->ContextGL(), provider->GrContext());
DCHECK(context_3d.gl);
return video_renderer_.CopyVideoFrameTexturesToGLTexture(
- context_3d, gl, video_frame.get(), texture, internal_format, type,
- premultiply_alpha, flip_y);
+ context_3d, gl, video_frame.get(), texture, premultiply_alpha, flip_y);
}
bool WebMediaPlayerMS::texImageImpl(TexImageFunctionID functionID,

Powered by Google App Engine
This is Rietveld 408576698