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

Unified Diff: gpu/command_buffer/service/texture_definition.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 | « gpu/command_buffer/service/mailbox_manager_sync.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_definition.cc
diff --git a/gpu/command_buffer/service/texture_definition.cc b/gpu/command_buffer/service/texture_definition.cc
index c19b5d3d47cf03c76182a07143059209c2585d1f..cdef8ad88afb99da3914d94f19245c37feea262f 100644
--- a/gpu/command_buffer/service/texture_definition.cc
+++ b/gpu/command_buffer/service/texture_definition.cc
@@ -361,7 +361,7 @@ TextureDefinition::TextureDefinition(
usage_(texture->usage()),
immutable_(texture->IsImmutable()),
defined_(texture->IsDefined()) {
- DCHECK_IMPLIES(image_buffer_.get(), defined_);
+ DCHECK(!image_buffer_.get() || defined_);
if (!image_buffer_.get() && defined_) {
image_buffer_ = NativeImageBuffer::Create(texture->service_id());
DCHECK(image_buffer_.get());
« no previous file with comments | « gpu/command_buffer/service/mailbox_manager_sync.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698