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

Unified Diff: media/filters/fake_video_decoder.h

Issue 2835203006: media: Refactor VideoFrameStreamTest (Closed)
Patch Set: Created 3 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.h
diff --git a/media/filters/fake_video_decoder.h b/media/filters/fake_video_decoder.h
index 3ac932f3f4bb0295721295d357d90ea193243892..4c5568f781735129833e80d31d8748dd751bc0c9 100644
--- a/media/filters/fake_video_decoder.h
+++ b/media/filters/fake_video_decoder.h
@@ -34,7 +34,8 @@ class FakeVideoDecoder : public VideoDecoder {
// Constructs an object with a decoding delay of |decoding_delay| frames.
// |bytes_decoded_cb| is called after each decode. The sum of the byte
// count over all calls will be equal to total_bytes_decoded().
- FakeVideoDecoder(int decoding_delay,
+ FakeVideoDecoder(const std::string& decoder_name,
sandersd (OOO until July 31) 2017/04/26 20:11:05 I am still not comfortable with this concept. I'm
sandersd (OOO until July 31) 2017/04/26 21:46:47 After taking this through in SEA, here is what we
+ int decoding_delay,
int max_parallel_decoding_requests,
const BytesDecodedCB& bytes_decoded_cb);
~FakeVideoDecoder() override;
@@ -98,6 +99,7 @@ class FakeVideoDecoder : public VideoDecoder {
base::ThreadChecker thread_checker_;
+ const std::string decoder_name_;
const size_t decoding_delay_;
const int max_parallel_decoding_requests_;
BytesDecodedCB bytes_decoded_cb_;

Powered by Google App Engine
This is Rietveld 408576698