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

Unified Diff: media/base/android/media_codec_util.h

Issue 2686963002: Fix and update MediaCodec blacklist. (Closed)
Patch Set: rebased. Created 3 years, 10 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/base/android/BUILD.gn ('k') | media/base/android/media_codec_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_util.h
diff --git a/media/base/android/media_codec_util.h b/media/base/android/media_codec_util.h
index 3bf0e5377235f7a7a52613e01d4683620f5b19e8..43650235d24d6fdf7e2ffcd97d41ce87d764331f 100644
--- a/media/base/android/media_codec_util.h
+++ b/media/base/android/media_codec_util.h
@@ -47,6 +47,13 @@ class MEDIA_EXPORT MediaCodecUtil {
// to check IsAvailable() explicitly before calling them.
static bool IsMediaCodecAvailable();
+ // Returns true if MediaCodec is available, with |sdk| as the sdk version and
+ // |model| as the model. This is provided for unit tests; you probably want
+ // IsMediaCodecAvailable() otherwise.
+ // TODO(liberato): merge this with IsMediaCodecAvailable, and provide a way
+ // to mock BuildInfo instead.
+ static bool IsMediaCodecAvailableFor(int sdk, const char* model);
+
// Returns true if MediaCodec.setParameters() is available on the device.
static bool SupportsSetParameters();
« no previous file with comments | « media/base/android/BUILD.gn ('k') | media/base/android/media_codec_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698