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

Unified Diff: content/common/gpu/media/vp8_decoder.cc

Issue 880773009: VP8Decoder: Drop references to reference frames earlier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/vp8_decoder.cc
diff --git a/content/common/gpu/media/vp8_decoder.cc b/content/common/gpu/media/vp8_decoder.cc
index fc3793c752719199f5ac19e5230d56c0ae9cdbe6..a2fe85c19b5237484698812793344b28d9e5aa6e 100644
--- a/content/common/gpu/media/vp8_decoder.cc
+++ b/content/common/gpu/media/vp8_decoder.cc
@@ -75,6 +75,12 @@ VP8Decoder::DecodeResult VP8Decoder::Decode() {
if (new_pic_size != pic_size_) {
DVLOG(2) << "New resolution: " << new_pic_size.ToString();
pic_size_ = new_pic_size;
+
+ DCHECK(!curr_pic_);
+ last_frame_ = nullptr;
+ golden_frame_ = nullptr;
+ alt_frame_ = nullptr;
+
return kAllocateNewSurfaces;
}
« no previous file with comments | « content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698