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

Unified Diff: content/renderer/gpu/mailbox_output_surface.cc

Issue 1213193003: Remove DCHECK_IMPLIES and CHECK_IMPLIES (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/gpu/mailbox_output_surface.cc
diff --git a/content/renderer/gpu/mailbox_output_surface.cc b/content/renderer/gpu/mailbox_output_surface.cc
index 4a598d4c60647d3e24225d10c56895c28fd86912..82697e0253c84ba416c3438889071f13b00c71e9 100644
--- a/content/renderer/gpu/mailbox_output_surface.cc
+++ b/content/renderer/gpu/mailbox_output_surface.cc
@@ -198,9 +198,9 @@ void MailboxOutputSurface::SwapBuffers(cc::CompositorFrame* frame) {
DCHECK(!surface_size_.IsEmpty());
DCHECK(surface_size_ == current_backing_.size);
DCHECK(frame->gl_frame_data->size == current_backing_.size);
- DCHECK_IMPLIES(current_backing_.mailbox.IsZero(),
- context_provider_->ContextGL()->GetGraphicsResetStatusKHR() !=
- GL_NO_ERROR);
+ DCHECK(!current_backing_.mailbox.IsZero() ||
+ (context_provider_->ContextGL()->GetGraphicsResetStatusKHR() !=
+ GL_NO_ERROR));
frame->gl_frame_data->mailbox = current_backing_.mailbox;
context_provider_->ContextGL()->Flush();

Powered by Google App Engine
This is Rietveld 408576698