diff options
author | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 20:24:01 +0000 |
---|---|---|
committer | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 20:24:01 +0000 |
commit | 7ee85d62a62726b2e86dc78efb8e89df6c44643e (patch) | |
tree | 33e8ffc970d3142143136060c50baac511d1b93b /native_client_sdk | |
parent | 11db6c2a71141a3fe28d8bc9080b7b341ce7563a (diff) | |
download | chromium_src-7ee85d62a62726b2e86dc78efb8e89df6c44643e.zip chromium_src-7ee85d62a62726b2e86dc78efb8e89df6c44643e.tar.gz chromium_src-7ee85d62a62726b2e86dc78efb8e89df6c44643e.tar.bz2 |
Pepper: Change PPB_VideoDecoder::Reset behavior so plugin always manages textures.
Reset now will allow plugin to call RecyclePicture. The plugin must recycle any
texture it receives now. This makes plugin code simpler, since it can treat all
textures it receives in the same way (no special Reset handling).
Also fix a bug where Reset didn't return textures to the hardware decoder, which
already has this behavior.
BUG=281689
Review URL: https://codereview.chromium.org/390213002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rw-r--r-- | native_client_sdk/src/examples/api/video_decode/video_decode.cc | 4 |
1 files changed, 0 insertions, 4 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 ad667f2..5db1b71 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 @@ -429,10 +429,6 @@ bool MyInstance::HandleInputEvent(const pp::InputEvent& event) { if (!video_decoders_[i]->resetting()) video_decoders_[i]->Reset(); } - - // Clear pending pictures. - while (!pending_pictures_.empty()) - pending_pictures_.pop(); } return true; } |