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

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
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 | « content/renderer/pepper/pepper_video_decoder_host.cc ('k') | native_client_sdk/src/examples/api/video_decode/video_decode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698