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

Unified Diff: media/base/eme_constants.h

Issue 1124863005: Restrict use of hardware-secure codecs based on the RendererPreference. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setsecurity
Patch Set: Remove ifdefs. Created 5 years, 7 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/eme_constants.h
diff --git a/media/base/eme_constants.h b/media/base/eme_constants.h
index 6d6399d60174ce060c331e2353a5f10bd9055488..53543e03faf3f8ab5d94565f6bc93b623859c8c4 100644
--- a/media/base/eme_constants.h
+++ b/media/base/eme_constants.h
@@ -129,15 +129,13 @@ enum class EmeConfigRule {
// The configuration option is supported if both a distinctive identifier and
// persistent state are available.
IDENTIFIER_AND_PERSISTENCE_REQUIRED,
-#if defined(OS_ANDROID)
- // The configuration option is supported if no hardware-secure codecs are used
- // (as they would be for video if secure surfaces are enabled).
- SECURE_CODECS_NOT_ALLOWED,
- // The configuration option is supported if only hardware-secure codecs are
- // used. This implies that secure surfaces (hole-punching) are required for
- // video.
- SECURE_CODECS_REQUIRED,
-#endif // defined(OS_ANDROID)
+ // The configuration option prevents requiring the use of secure surfaces.
ddorwin 2015/05/08 03:18:31 This really (will in the next CL) affects the secu
sandersd (OOO until July 31) 2015/05/08 18:04:45 Things get murky here, because there is an implici
+ // (This could mean that secure surfaces are not available at all, or just
+ // that they are not guaranteed to be available together with this
+ // configuration option.)
+ SECURE_SURFACES_NOT_REQUIRABLE,
ddorwin 2015/05/08 03:18:31 Why "REQUIRABLE" instead of "ALLOWED"?
sandersd (OOO until July 31) 2015/05/08 18:04:45 The actual use of secure surfaces is independent o
+ // The configuration option is supported if secure surfaces are used.
+ SECURE_SURFACES_REQUIRED,
// The configuration option is supported without conditions.
SUPPORTED,
};

Powered by Google App Engine
This is Rietveld 408576698