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

Unified Diff: content/renderer/media/android/webmediaplayer_android.cc

Issue 1134643002: Add distinction between RGB and RGBA native texture video frames and resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit test breakage from bad merge Created 5 years, 7 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
Index: content/renderer/media/android/webmediaplayer_android.cc
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc
index 90a6719d6add92022175e431cd789123fcfafff4..763bdaaa652d7da069bce350e666e9a271c5f41e 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -1211,7 +1211,7 @@ void WebMediaPlayerAndroid::DrawRemotePlaybackText(
remote_playback_texture_id)),
canvas_size /* coded_size */, gfx::Rect(canvas_size) /* visible_rect */,
canvas_size /* natural_size */, base::TimeDelta() /* timestamp */,
- false /* allow overlay */);
+ false /* allow overlay */, true /* has_alpha */);
SetCurrentFrameInternal(new_frame);
}
@@ -1247,7 +1247,7 @@ void WebMediaPlayerAndroid::ReallocateVideoFrame() {
media::BindToCurrentLoop(base::Bind(
&OnReleaseTexture, stream_texture_factory_, texture_id_ref)),
natural_size_, gfx::Rect(natural_size_), natural_size_,
- base::TimeDelta(), false);
+ base::TimeDelta(), false /* allow_overlay */, true /* has_alpha */);
SetCurrentFrameInternal(new_frame);
}
}
« no previous file with comments | « content/browser/renderer_host/media/video_capture_device_client.cc ('k') | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698