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

Unified Diff: ppapi/tests/test_video_decoder.cc

Issue 418193003: Using PROFILE_ANY for vp8 and vp9 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing compile failures Created 6 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
« ppapi/api/pp_codecs.idl ('K') | « ppapi/examples/video_decode/video_decode.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_video_decoder.cc
diff --git a/ppapi/tests/test_video_decoder.cc b/ppapi/tests/test_video_decoder.cc
index e801e05b9067cd1c9c86c4ecd7408b87f888875a..0b819e737dfb13e6ab851fd65ee5a10c0ce4361e 100644
--- a/ppapi/tests/test_video_decoder.cc
+++ b/ppapi/tests/test_video_decoder.cc
@@ -37,10 +37,11 @@ std::string TestVideoDecoder::TestCreate() {
TestCompletionCallback callback(instance_->pp_instance(), callback_type());
pp::Graphics3D null_graphics_3d;
- callback.WaitForResult(video_decoder.Initialize(null_graphics_3d,
- PP_VIDEOPROFILE_VP8MAIN,
- kAllowSoftwareFallback,
- callback.GetCallback()));
+ callback.WaitForResult(
+ video_decoder.Initialize(null_graphics_3d,
+ PP_VIDEOPROFILE_VP8PROFILE_UNSPECIFIED,
+ kAllowSoftwareFallback,
+ callback.GetCallback()));
ASSERT_EQ(PP_ERROR_BADRESOURCE, callback.result());
}
// Test that Initialize fails with a bad profile enum value.
@@ -59,10 +60,11 @@ std::string TestVideoDecoder::TestCreate() {
if (!graphics_3d_.is_null()) {
pp::VideoDecoder video_decoder(instance_);
TestCompletionCallback callback(instance_->pp_instance(), callback_type());
- callback.WaitForResult(video_decoder.Initialize(graphics_3d_,
- PP_VIDEOPROFILE_VP8MAIN,
- kAllowSoftwareFallback,
- callback.GetCallback()));
+ callback.WaitForResult(
+ video_decoder.Initialize(graphics_3d_,
+ PP_VIDEOPROFILE_VP8PROFILE_UNSPECIFIED,
+ kAllowSoftwareFallback,
+ callback.GetCallback()));
ASSERT_EQ(PP_OK, callback.result());
}
« ppapi/api/pp_codecs.idl ('K') | « ppapi/examples/video_decode/video_decode.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698