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

Unified Diff: ppapi/proxy/video_decoder_resource.cc

Issue 390213002: Pepper: Change PPB_VideoDecoder::Reset behavior so plugin always manages textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « ppapi/cpp/video_decoder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/video_decoder_resource.cc
diff --git a/ppapi/proxy/video_decoder_resource.cc b/ppapi/proxy/video_decoder_resource.cc
index acb5f75e3f78b9a0762f9b70a8ace875ba19df80..c146523c3bf0d9ceb95e26522ee4dd21b4df0fb5 100644
--- a/ppapi/proxy/video_decoder_resource.cc
+++ b/ppapi/proxy/video_decoder_resource.cc
@@ -472,8 +472,11 @@ void VideoDecoderResource::OnPluginMsgResetComplete(
// All shm buffers should have been made available by now.
DCHECK_EQ(shm_buffers_.size(), available_shm_buffers_.size());
// Received pictures are no longer valid.
- while (!received_pictures_.empty())
+ while (!received_pictures_.empty()) {
+ Post(RENDERER, PpapiHostMsg_VideoDecoder_RecyclePicture(
+ received_pictures_.front().texture_id));
igorc 2014/07/14 23:07:07 nit: 4 space alignment
bbudge 2014/07/15 15:58:08 Done.
received_pictures_.pop();
+ }
scoped_refptr<TrackedCallback> callback;
callback.swap(reset_callback_);
« no previous file with comments | « ppapi/cpp/video_decoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698