summaryrefslogtreecommitdiffstats
path: root/ppapi/c/pp_codecs.h
diff options
context:
space:
mode:
authorbbudge <bbudge@chromium.org>2014-08-23 15:17:45 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-23 22:18:36 +0000
commit4d6acafdc75e94256ab7c75f2f3e8a46e42bb9ec (patch)
treec992d155554bce6fc4638b9b4eea09693a5673c0 /ppapi/c/pp_codecs.h
parent878e9535344a864efec4c5137e3b1363f911f378 (diff)
downloadchromium_src-4d6acafdc75e94256ab7c75f2f3e8a46e42bb9ec.zip
chromium_src-4d6acafdc75e94256ab7c75f2f3e8a46e42bb9ec.tar.gz
chromium_src-4d6acafdc75e94256ab7c75f2f3e8a46e42bb9ec.tar.bz2
Pepper: PPB_VideoDecoder software-only mode.
Add 'Initialize' method that takes an enum value to specify hardware acceleration policy. Policies are always, with fallback and only software. BUG=406194 Review URL: https://codereview.chromium.org/496203002 Cr-Commit-Position: refs/heads/master@{#291606}
Diffstat (limited to 'ppapi/c/pp_codecs.h')
-rw-r--r--ppapi/c/pp_codecs.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/ppapi/c/pp_codecs.h b/ppapi/c/pp_codecs.h
index 5e5bce7..f10a480 100644
--- a/ppapi/c/pp_codecs.h
+++ b/ppapi/c/pp_codecs.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From pp_codecs.idl modified Mon Jun 30 14:36:36 2014. */
+/* From pp_codecs.idl modified Fri Aug 22 13:39:56 2014. */
#ifndef PPAPI_C_PP_CODECS_H_
#define PPAPI_C_PP_CODECS_H_
@@ -38,6 +38,22 @@ typedef enum {
PP_VIDEOPROFILE_VP9_ANY = 12,
PP_VIDEOPROFILE_MAX = PP_VIDEOPROFILE_VP9_ANY
} PP_VideoProfile;
+
+/**
+ * Hardware acceleration options.
+ */
+typedef enum {
+ /** Create a hardware accelerated resource only. */
+ PP_HARDWAREACCELERATION_ONLY = 0,
+ /**
+ * Create a hardware accelerated resource if possible. Otherwise, fall back
+ * to the software implementation.
+ */
+ PP_HARDWAREACCELERATION_WITHFALLBACK = 1,
+ /** Create the software implementation only. */
+ PP_HARDWAREACCELERATION_NONE = 2,
+ PP_HARDWAREACCELERATION_LAST = PP_HARDWAREACCELERATION_NONE
+} PP_HardwareAcceleration;
/**
* @}
*/