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

Unified Diff: media/base/media_client.h

Issue 2153643002: Make video codec support logic overridable via MediaClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 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/base/media_client.h
diff --git a/media/base/media_client.h b/media/base/media_client.h
index a075ebe79103bbdf8c5e90b7dc71e539a2747d0f..e3bb095a6ac83077bb5b7213fdff6b8392926600 100644
--- a/media/base/media_client.h
+++ b/media/base/media_client.h
@@ -10,6 +10,7 @@
#include "media/base/key_system_properties.h"
#include "media/base/media_export.h"
+#include "media/base/video_codecs.h"
#include "url/gurl.h"
namespace media {
@@ -64,6 +65,12 @@ class MEDIA_EXPORT MediaClient {
// Records a domain and registry of a url to a Rappor privacy-preserving
// metric. See: https://www.chromium.org/developers/design-documents/rappor
virtual void RecordRapporURL(const std::string& metric, const GURL& url) = 0;
+
+ // Returns true if the given combination of video codec, profile and level is
+ // supported. The |level| value is codec-specific.
+ virtual bool IsSupportedVideoConfig(VideoCodec codec,
+ VideoCodecProfile profile,
+ int level) = 0;
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698