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

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

Issue 1421483005: Reland: Remove DCHECK_IMPLIES/CHECK_IMPLIES. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/client/gl_helper_scaling.cc ('k') | content/renderer/gpu/mailbox_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/vp9_decoder.cc
diff --git a/content/common/gpu/media/vp9_decoder.cc b/content/common/gpu/media/vp9_decoder.cc
index 7c25832cdc12c89cd6895f6c56744cc620c3d0da..c1adc84bbdeb2561c3523588e4d61f8825b07079 100644
--- a/content/common/gpu/media/vp9_decoder.cc
+++ b/content/common/gpu/media/vp9_decoder.cc
@@ -138,8 +138,7 @@ VP9Decoder::DecodeResult VP9Decoder::Decode() {
void VP9Decoder::RefreshReferenceFrames(const scoped_refptr<VP9Picture>& pic) {
for (size_t i = 0; i < media::kVp9NumRefFrames; ++i) {
- DCHECK_IMPLIES(pic->frame_hdr->IsKeyframe(),
- pic->frame_hdr->RefreshFlag(i));
+ DCHECK(!pic->frame_hdr->IsKeyframe() || pic->frame_hdr->RefreshFlag(i));
if (pic->frame_hdr->RefreshFlag(i))
ref_frames_[i] = pic;
}
« no previous file with comments | « content/common/gpu/client/gl_helper_scaling.cc ('k') | content/renderer/gpu/mailbox_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698