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

Unified Diff: cc/output/direct_renderer.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
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/playback/display_item_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index 7ceaa00379f15a96de8b2afcad91ac6367c1a040..23cd2fed4585b1e35134178535ff1d7181236837 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -421,8 +421,8 @@ void DirectRenderer::DrawRenderPass(DrawingFrame* frame,
// If |has_external_stencil_test| we can't discard or clear. Make sure we
// don't need to.
- DCHECK_IMPLIES(has_external_stencil_test,
- !frame->current_render_pass->has_transparent_background);
+ DCHECK(!has_external_stencil_test ||
+ !frame->current_render_pass->has_transparent_background);
SurfaceInitializationMode mode;
if (should_clear_surface && render_pass_is_clipped) {
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/playback/display_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698