diff options
author | lionel.g.landwerlin <lionel.g.landwerlin@intel.com> | 2015-05-07 10:30:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-07 17:30:49 +0000 |
commit | 90320b543e0d115afe0757a86c1db2a95904b51d (patch) | |
tree | 59f0906a447fbe0145f3cf50bee00ab350ff0851 /ppapi | |
parent | 518ef5f1e7e5dffac74eb5ae514d5fc5a1344fe1 (diff) | |
download | chromium_src-90320b543e0d115afe0757a86c1db2a95904b51d.zip chromium_src-90320b543e0d115afe0757a86c1db2a95904b51d.tar.gz chromium_src-90320b543e0d115afe0757a86c1db2a95904b51d.tar.bz2 |
renderer: PepperVideoEncoderHost: use libvpx instead of media/cast/sender
BUG=455409
TEST=run the video_encode NaCl SDK example using the vp8 encoder
Review URL: https://codereview.chromium.org/1097793007
Cr-Commit-Position: refs/heads/master@{#328786}
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/tests/test_video_encoder.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ppapi/tests/test_video_encoder.cc b/ppapi/tests/test_video_encoder.cc index 95e8667..b4907cc 100644 --- a/ppapi/tests/test_video_encoder.cc +++ b/ppapi/tests/test_video_encoder.cc @@ -22,7 +22,8 @@ void TestVideoEncoder::RunTests(const std::string& filter) { } std::string TestVideoEncoder::TestCreate() { - // Test that we get results for supported formats. + // Test that we get results for supported formats. We should at + // least get the software supported formats. { pp::VideoEncoder video_encoder(instance_); ASSERT_FALSE(video_encoder.is_null()); @@ -41,8 +42,13 @@ std::string TestVideoEncoder::TestCreate() { bool found_vp8 = false; for (uint32_t i = 0; i < video_profiles.size(); ++i) { const PP_VideoProfileDescription& description = video_profiles[i]; - if (description.profile == PP_VIDEOPROFILE_VP8_ANY) + if (description.profile == PP_VIDEOPROFILE_VP8_ANY && + description.hardware_accelerated == PP_FALSE) { + ASSERT_GE(description.max_framerate_numerator / + description.max_framerate_denominator, + 30U); found_vp8 = true; + } } ASSERT_TRUE(found_vp8); } |