fix parentheses warning

Bug: skia:11786
Change-Id: I2ded1f1cbd486e1710f1ebbb326844258cfeac64
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/392436
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2021-04-02 15:53:42 -04:00 committed by Skia Commit-Bot
parent ffeee9bfde
commit 7cde6c36f4

View File

@ -422,7 +422,7 @@ bool GrSurfaceContext::internalWritePixels(GrDirectContext* dContext,
// We can either write to a subset or write MIP levels, but not both. // We can either write to a subset or write MIP levels, but not both.
SkASSERT((src[0].dimensions() == this->dimensions() && pt.isZero()) || numLevels == 1); SkASSERT((src[0].dimensions() == this->dimensions() && pt.isZero()) || numLevels == 1);
SkASSERT(numLevels == 1 || SkASSERT(numLevels == 1 ||
this->asTextureProxy() && this->asTextureProxy()->mipmapped() == GrMipmapped::kYes); (this->asTextureProxy() && this->asTextureProxy()->mipmapped() == GrMipmapped::kYes));
// Our public caller should have clipped to the bounds of the surface already. // Our public caller should have clipped to the bounds of the surface already.
SkASSERT(SkIRect::MakeSize(this->dimensions()) SkASSERT(SkIRect::MakeSize(this->dimensions())
.contains(SkIRect::MakePtSize(pt, src[0].dimensions()))); .contains(SkIRect::MakePtSize(pt, src[0].dimensions())));