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:
parent
ffeee9bfde
commit
7cde6c36f4
@ -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())));
|
||||||
|
Loading…
Reference in New Issue
Block a user