diff options
author | robertphillips <robertphillips@google.com> | 2015-02-10 08:16:55 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-10 08:16:55 -0800 |
commit | e85a32d4f8ce7fb9b6aaae89137dbf3766d833f2 (patch) | |
tree | 3b6a65e0ef71425284e4cf4f1f40faf58255ec55 /include/gpu | |
parent | ac928f27ab632784d6b9572901201caa2908caa5 (diff) |
Clean up clipping code a bit
Review URL: https://codereview.chromium.org/913693002
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrTypesPriv.h | 5 |
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; }; |