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

Unified Diff: media/filters/fake_demuxer_stream.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_demuxer_stream.cc
diff --git a/media/filters/fake_demuxer_stream.cc b/media/filters/fake_demuxer_stream.cc
index 5c5ca50ebd455563d809a0bdbc11029707ae6186..f89de1029bef116b0932785b06c66ca8d67f3feb 100644
--- a/media/filters/fake_demuxer_stream.cc
+++ b/media/filters/fake_demuxer_stream.cc
@@ -111,6 +111,15 @@ void FakeDemuxerStream::SatisfyRead() {
DoRead();
}
+void FakeDemuxerStream::SatisfyAndHoldRead() {
+ DCHECK(task_runner_->BelongsToCurrentThread());
+ DCHECK_EQ(read_to_hold_, next_read_num_);
+ DCHECK(!read_cb_.is_null());
+
+ ++read_to_hold_;
+ DoRead();
+}
+
void FakeDemuxerStream::Reset() {
read_to_hold_ = -1;

Powered by Google App Engine
This is Rietveld 408576698