Chromium Code Reviews| Index: ui/gl/gl_image_memory.cc |
| diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc |
| index ad1e6b944b645179923b5a6b93a79525ceb0c783..9ed470f52506a055f0eef56e4352b8db30b2b287 100644 |
| --- a/ui/gl/gl_image_memory.cc |
| +++ b/ui/gl/gl_image_memory.cc |
| @@ -258,8 +258,8 @@ bool GLImageMemory::Initialize(const unsigned char* memory, |
| DCHECK(memory); |
| DCHECK(!memory_); |
| - DCHECK_IMPLIES(IsCompressedFormat(format), size_.width() % 4 == 0); |
| - DCHECK_IMPLIES(IsCompressedFormat(format), size_.height() % 4 == 0); |
| + DCHECK(!IsCompressedFormat(format) || (size_.width() % 4 == 0)); |
|
Nico
2015/10/26 17:45:27
nit: parens on rhs not needed (also in the line be
vmpstr
2015/10/26 18:10:08
Done.
|
| + DCHECK(!IsCompressedFormat(format) || (size_.height() % 4 == 0)); |
| memory_ = memory; |
| format_ = format; |
| return true; |