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

Unified Diff: media/filters/fake_video_decoder.cc

Issue 239893002: Allow multiple concurrent Decode() requests in VideoDecoder interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: media/filters/fake_video_decoder.cc
diff --git a/media/filters/fake_video_decoder.cc b/media/filters/fake_video_decoder.cc
index 0f171999783f161a65bf38c2662f76d15655ad6b..28913a4e2c4a659dd211be32fce901084b876ab1 100644
--- a/media/filters/fake_video_decoder.cc
+++ b/media/filters/fake_video_decoder.cc
@@ -71,6 +71,7 @@ void FakeVideoDecoder::Decode(const scoped_refptr<DecoderBuffer>& buffer,
scoped_refptr<VideoFrame> video_frame = VideoFrame::CreateColorFrame(
current_config_.coded_size(), 0, 0, 0, buffer->timestamp());
decoded_frames_.push_back(video_frame);
+ LOG(ERROR) << "Queue " << decoded_frames_.size();
Ami GONE FROM CHROMIUM 2014/04/16 01:00:00 drop?
Sergey Ulanov 2014/04/16 01:44:14 Done.
if (decoded_frames_.size() <= static_cast<size_t>(decoding_delay_)) {
decode_cb_.RunOrHold(kNotEnoughData, scoped_refptr<VideoFrame>());
@@ -80,6 +81,7 @@ void FakeVideoDecoder::Decode(const scoped_refptr<DecoderBuffer>& buffer,
scoped_refptr<VideoFrame> frame = decoded_frames_.front();
decoded_frames_.pop_front();
+ LOG(ERROR) << "Queue " << decoded_frames_.size();
Ami GONE FROM CHROMIUM 2014/04/16 01:00:00 drop?
Sergey Ulanov 2014/04/16 01:44:14 Done.
decode_cb_.RunOrHold(kOk, frame);
}
@@ -115,6 +117,7 @@ scoped_refptr<VideoFrame> FakeVideoDecoder::GetDecodeOutput() {
return NULL;
scoped_refptr<VideoFrame> out = decoded_frames_.front();
decoded_frames_.pop_front();
+ LOG(ERROR) << "Queue " << decoded_frames_.size();
Ami GONE FROM CHROMIUM 2014/04/16 01:00:00 drop?
Sergey Ulanov 2014/04/16 01:44:14 Done.
return out;
}

Powered by Google App Engine
This is Rietveld 408576698