summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
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 /native_client_sdk
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 'native_client_sdk')
-rw-r--r--native_client_sdk/src/examples/api/video_decode/video_decode.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/native_client_sdk/src/examples/api/video_decode/video_decode.cc b/native_client_sdk/src/examples/api/video_decode/video_decode.cc
index 80088b9..9664c9b 100644
--- a/native_client_sdk/src/examples/api/video_decode/video_decode.cc
+++ b/native_client_sdk/src/examples/api/video_decode/video_decode.cc
@@ -254,7 +254,7 @@ Decoder::Decoder(MyInstance* instance,
assert(!decoder_->is_null());
decoder_->Initialize(graphics_3d,
kBitstreamProfile,
- PP_TRUE /* allow_software_fallback */,
+ PP_HARDWAREACCELERATION_WITHFALLBACK,
callback_factory_.NewCallback(&Decoder::InitializeDone));
}