aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLIRect.h
diff options
context:
space:
mode:
authorGravatar Adrienne Walker <enne@chromium.org>2018-05-21 11:05:48 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-21 18:41:39 +0000
commit3a69c7441572c7ed72520358c95dfbbddeb394ae (patch)
treef57cdf7344a2b3767870862f2a5a23ec036c7031 /src/gpu/gl/GrGLIRect.h
parent6d138bf681eee54a8b4a40e5dbbd08a137ae0d93 (diff)
Fix unit tests when workarounds are enabled
Change-Id: Ia660a6d91aa3615e0fa21fba67f5029c131b1ba2 Reviewed-on: https://skia-review.googlesource.com/128983 Commit-Queue: Adrienne Walker <enne@chromium.org> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/gl/GrGLIRect.h')
-rw-r--r--src/gpu/gl/GrGLIRect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLIRect.h b/src/gpu/gl/GrGLIRect.h
index a699ae36bd..eea341cda9 100644
--- a/src/gpu/gl/GrGLIRect.h
+++ b/src/gpu/gl/GrGLIRect.h
@@ -85,6 +85,8 @@ struct GrGLIRect {
}
void invalidate() {fLeft = fWidth = fBottom = fHeight = -1;}
+ bool isInvalid() const { return fLeft == -1 && fWidth == -1 && fBottom == -1
+ && fHeight == -1; }
bool operator ==(const GrGLIRect& glRect) const {
return 0 == memcmp(this, &glRect, sizeof(GrGLIRect));