summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-12 05:08:59 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-12 05:08:59 +0000
commita0bd4d84ba5c7582d7ae3460498967a1c31f2e23 (patch)
treec0092a26ec79b11e47017f08234794e93a0bf1b3
parent435f1ce2fd1d5a22d9497cabd4fc7af2b3d4bb50 (diff)
downloadchromium_src-a0bd4d84ba5c7582d7ae3460498967a1c31f2e23.zip
chromium_src-a0bd4d84ba5c7582d7ae3460498967a1c31f2e23.tar.gz
chromium_src-a0bd4d84ba5c7582d7ae3460498967a1c31f2e23.tar.bz2
Fix typo in PPB_VideoDecoder_Impl::Decode causing performance degradation
BUG=None TEST=Pepper Flash Review URL: http://codereview.chromium.org/7629004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96511 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/plugins/ppapi/ppb_video_decoder_impl.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
index 38678ff..57c4dbc 100644
--- a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
+++ b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
@@ -100,9 +100,10 @@ int32_t PPB_VideoDecoder_Impl::Decode(
return PP_ERROR_FAILED;
PPB_Buffer_Impl* buffer = static_cast<PPB_Buffer_Impl*>(enter.object());
- media::BitstreamBuffer decode_buffer(bitstream_buffer->id,
- buffer->shared_memory()->handle(),
- static_cast<size_t>(buffer->size()));
+ media::BitstreamBuffer decode_buffer(
+ bitstream_buffer->id,
+ buffer->shared_memory()->handle(),
+ static_cast<size_t>(bitstream_buffer->size));
SetBitstreamBufferCallback(bitstream_buffer->id, callback);
FlushCommandBuffer();