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

Unified Diff: content/renderer/pepper/video_decoder_shim.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 | « no previous file | ppapi/api/ppb_video_decoder.idl » ('j') | ppapi/proxy/video_decoder_resource.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/video_decoder_shim.cc
diff --git a/content/renderer/pepper/video_decoder_shim.cc b/content/renderer/pepper/video_decoder_shim.cc
index afd7f57c31b9fe0701fb033e57c67c056eb26ec3..50a63989278fd069392ef2497243d02369edfb1f 100644
--- a/content/renderer/pepper/video_decoder_shim.cc
+++ b/content/renderer/pepper/video_decoder_shim.cc
@@ -556,12 +556,6 @@ void VideoDecoderShim::OnResetComplete() {
// Dismiss any old textures now.
while (!textures_to_dismiss_.empty())
DismissTexture(*textures_to_dismiss_.begin());
- // Make all textures available.
- for (TextureIdMap::const_iterator it = texture_id_map_.begin();
- it != texture_id_map_.end();
- ++it) {
- available_textures_.insert(it->first);
- }
state_ = DECODING;
host_->NotifyResetDone();
« no previous file with comments | « no previous file | ppapi/api/ppb_video_decoder.idl » ('j') | ppapi/proxy/video_decoder_resource.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698