aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-02-10 08:16:55 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-10 08:16:55 -0800
commite85a32d4f8ce7fb9b6aaae89137dbf3766d833f2 (patch)
tree3b6a65e0ef71425284e4cf4f1f40faf58255ec55 /include/gpu
parentac928f27ab632784d6b9572901201caa2908caa5 (diff)
Clean up clipping code a bit
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrTypesPriv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrTypesPriv.h b/include/gpu/GrTypesPriv.h
index b22f48026c..1f86197295 100644
--- a/include/gpu/GrTypesPriv.h
+++ b/include/gpu/GrTypesPriv.h
@@ -249,6 +249,11 @@ struct GrScissorState {
(false == fEnabled || fRect == other.fRect);
}
bool operator!=(const GrScissorState& other) const { return !(*this == other); }
+
+ bool enabled() const { return fEnabled; }
+ const SkIRect& rect() const { return fRect; }
+
+private:
bool fEnabled;
SkIRect fRect;
};