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

Unified Diff: content/common/gpu/media/android_video_decode_accelerator.cc

Issue 1910063005: Store AVDACodecImage list in shared state, cleanup callers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment. Created 4 years, 8 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/common/gpu/media/android_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc
index 105c03b84f4547ef9788b5219126c2b13e4a0d6d..0f23cefc87289e7e34c7f238a9af54433d37ca9f 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.cc
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc
@@ -956,7 +956,7 @@ void AndroidVideoDecodeAccelerator::ConfigureMediaCodecAsynchronously() {
// strategy to forget the codec avoids this.
if (media_codec_) {
media_codec_.reset();
- strategy_->CodecChanged(nullptr, output_picture_buffers_);
+ strategy_->CodecChanged(nullptr);
}
scoped_refptr<base::SingleThreadTaskRunner> task_runner =
@@ -1008,7 +1008,7 @@ void AndroidVideoDecodeAccelerator::OnCodecConfigured(
// Record one instance of the codec being initialized.
RecordFormatChangedMetric(FormatChangedValue::CodecInitialized);
- strategy_->CodecChanged(media_codec_.get(), output_picture_buffers_);
+ strategy_->CodecChanged(media_codec_.get());
// If we are supposed to notify that initialization is complete, then do so
// now. Otherwise, this is a reconfiguration.
@@ -1068,7 +1068,7 @@ void AndroidVideoDecodeAccelerator::ResetCodecState() {
media_codec_->Reset();
// Since we just flushed all the output buffers, make sure that nothing is
// using them.
- strategy_->CodecChanged(media_codec_.get(), output_picture_buffers_);
+ strategy_->CodecChanged(media_codec_.get());
} else {
DVLOG(3) << __FUNCTION__
<< " Deleting the MediaCodec and creating a new one.";
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator.h ('k') | content/common/gpu/media/avda_codec_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698