diff options
author | tomfinegan@chromium.org <tomfinegan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 07:23:17 +0000 |
---|---|---|
committer | tomfinegan@chromium.org <tomfinegan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 07:23:17 +0000 |
commit | 80a578038e866278e4f5b06f1b2a6b677cd99a0c (patch) | |
tree | 2de6e052c9b5a4a94f06b50cbc03b1c1a8417886 /webkit | |
parent | 00c88f389c58c04dff6fd3a1456e928235209d27 (diff) | |
download | chromium_src-80a578038e866278e4f5b06f1b2a6b677cd99a0c.zip chromium_src-80a578038e866278e4f5b06f1b2a6b677cd99a0c.tar.gz chromium_src-80a578038e866278e4f5b06f1b2a6b677cd99a0c.tar.bz2 |
ExternalClearKey: Use 2 threads for decoding in libvpx.
cdm_bench performance testing on lucas devices shows a decoding speed increase of about 30 percent when using two threads.
Review URL: https://chromiumcodereview.appspot.com/12221036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc b/webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc index 6590e6f..f06b729 100644 --- a/webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc +++ b/webkit/media/crypto/ppapi/libvpx_cdm_video_decoder.cc @@ -26,8 +26,9 @@ extern "C" { namespace webkit_media { -static const int kDecodeThreads = 1; +static const int kDecodeThreads = 2; +#if defined(USE_COPYPLANE_WITH_LIBVPX) static void CopyPlane(const uint8_t* source, int32_t source_stride, int32_t target_stride, @@ -47,6 +48,7 @@ static void CopyPlane(const uint8_t* source, copy_bytes_per_row); } } +#endif // USE_COPYPLANE_WITH_LIBVPX LibvpxCdmVideoDecoder::LibvpxCdmVideoDecoder(cdm::Allocator* allocator) : is_initialized_(false), |