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

Unified Diff: gpu/command_buffer/service/texture_definition.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 | « 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 ad9fe8a9a105bc17d20492acfa2756310a933a3f..3f16e8503fa7f94ee6df56d892a18f9d06e4be59 100644
--- a/gpu/command_buffer/service/texture_definition.cc
+++ b/gpu/command_buffer/service/texture_definition.cc
@@ -334,7 +334,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