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

Unified Diff: media/video/video_decode_accelerator.cc

Issue 1469353010: Configure MediaCodec with CDM in ADVA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 4 years, 11 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/video/video_decode_accelerator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/video_decode_accelerator.cc
diff --git a/media/video/video_decode_accelerator.cc b/media/video/video_decode_accelerator.cc
index 3b13477b897ea428d38a681f08b434230150583b..0dec96059d3f55e4a5efa061fdbf04b616e46de9 100644
--- a/media/video/video_decode_accelerator.cc
+++ b/media/video/video_decode_accelerator.cc
@@ -17,6 +17,13 @@ VideoDecodeAccelerator::Config::Config(
: profile(video_decoder_config.profile()),
is_encrypted(video_decoder_config.is_encrypted()) {}
+std::string VideoDecodeAccelerator::Config::AsHumanReadableString() const {
+ std::ostringstream s;
+ s << "profile: " << GetProfileName(profile) << " encrypted? "
+ << (is_encrypted ? "true" : "false");
+ return s.str();
+}
+
void VideoDecodeAccelerator::Client::NotifyCdmAttached(bool success) {
NOTREACHED() << "By default CDM is not supported.";
}
« no previous file with comments | « media/video/video_decode_accelerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698