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

Unified Diff: media/gpu/android_video_decode_accelerator.cc

Issue 2461073002: Use MediaCodec.setOutputSurface() for fullscreen transitions on M. (Closed)
Patch Set: Fix IPC, but now everything explodes :( Created 4 years, 2 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: media/gpu/android_video_decode_accelerator.cc
diff --git a/media/gpu/android_video_decode_accelerator.cc b/media/gpu/android_video_decode_accelerator.cc
index ccc9f0b90a657923fe19d20cb65b51a1f26af782..d748ec183c9a08465bacf5c23d14898e4986081f 100644
--- a/media/gpu/android_video_decode_accelerator.cc
+++ b/media/gpu/android_video_decode_accelerator.cc
@@ -1240,6 +1240,16 @@ void AndroidVideoDecodeAccelerator::Reset() {
}
}
+void AndroidVideoDecodeAccelerator::SetSurface(int surface_id) {
+ config_.surface_id = surface_id;
+ codec_config_->surface_ = picture_buffer_manager_.SetSurface(surface_id);
+ if (media_codec_)
+ media_codec_->SetSurface(codec_config_->surface_.j_surface().obj());
+
+ // TODO(dalecurtis): What to do about AllocateSurface()?
liberato (no reviews please) 2016/10/29 18:57:20 since we didn't restart, i think that there should
+ // TODO(dalecurtis): What to do about inflight configurations?
+}
+
void AndroidVideoDecodeAccelerator::Destroy() {
DVLOG(1) << __FUNCTION__;
DCHECK(thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698