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

Unified Diff: media/filters/fake_video_decoder.cc

Issue 2835203006: media: Refactor VideoFrameStreamTest (Closed)
Patch Set: comments 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
« no previous file with comments | « media/filters/fake_video_decoder.h ('k') | media/filters/fake_video_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/fake_video_decoder.cc
diff --git a/media/filters/fake_video_decoder.cc b/media/filters/fake_video_decoder.cc
index 013cecaddbf4d3984ff1f421d66f8844eaf1377e..06c4e7fe8946b81047e192cf48de5e641091efb0 100644
--- a/media/filters/fake_video_decoder.cc
+++ b/media/filters/fake_video_decoder.cc
@@ -10,10 +10,12 @@
namespace media {
-FakeVideoDecoder::FakeVideoDecoder(int decoding_delay,
+FakeVideoDecoder::FakeVideoDecoder(const std::string& decoder_name,
+ int decoding_delay,
int max_parallel_decoding_requests,
const BytesDecodedCB& bytes_decoded_cb)
- : decoding_delay_(decoding_delay),
+ : decoder_name_(decoder_name),
+ decoding_delay_(decoding_delay),
max_parallel_decoding_requests_(max_parallel_decoding_requests),
bytes_decoded_cb_(bytes_decoded_cb),
state_(STATE_UNINITIALIZED),
@@ -47,7 +49,7 @@ void FakeVideoDecoder::EnableEncryptedConfigSupport() {
}
std::string FakeVideoDecoder::GetDisplayName() const {
- return "FakeVideoDecoder";
+ return decoder_name_;
}
void FakeVideoDecoder::Initialize(const VideoDecoderConfig& config,
« no previous file with comments | « media/filters/fake_video_decoder.h ('k') | media/filters/fake_video_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698