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

Unified Diff: content/common/gpu/client/gl_helper_scaling.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/common/gpu/client/gl_helper_scaling.cc
diff --git a/content/common/gpu/client/gl_helper_scaling.cc b/content/common/gpu/client/gl_helper_scaling.cc
index 7b7338dc07e1ec5db68e7b31ec664a6588f47c57..2033636fc37ae5971e505941f1d022faeac9424f 100644
--- a/content/common/gpu/client/gl_helper_scaling.cc
+++ b/content/common/gpu/client/gl_helper_scaling.cc
@@ -870,8 +870,7 @@ void ShaderProgram::Setup(const GLchar* vertex_shader_text,
// The only reason fetching these attribute locations should fail is
// if the context was spontaneously lost (i.e., because the GPU
// process crashed, perhaps deliberately for testing).
- DCHECK_IMPLIES(!Initialized(),
- gl_->GetGraphicsResetStatusKHR() != GL_NO_ERROR);
+ DCHECK(Initialized() || (gl_->GetGraphicsResetStatusKHR() != GL_NO_ERROR));
}
void ShaderProgram::UseProgram(const gfx::Size& src_size,

Powered by Google App Engine
This is Rietveld 408576698