aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrReducedClip.h
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2016-08-23 13:26:40 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-23 13:26:40 -0700
commit5ecbbbef58a5720a376191b75956abfb5098fc0d (patch)
treeb4d22bf1c65cbb79d57f813900ac6a0b08b8068d /src/gpu/GrReducedClip.h
parent1f0e78ddf94f6259e8bbfb403b55c8eeedac390c (diff)
Skip non-AA intersect rects in GrReducedClip
Skips non-AA rects whose op is intersect or replace, and who do not precede elements that grow the clip, by tightening fIBounds. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2271493002 Review-Url: https://codereview.chromium.org/2271493002
Diffstat (limited to 'src/gpu/GrReducedClip.h')
-rw-r--r--src/gpu/GrReducedClip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrReducedClip.h b/src/gpu/GrReducedClip.h
index a867483de8..c3f94a0dff 100644
--- a/src/gpu/GrReducedClip.h
+++ b/src/gpu/GrReducedClip.h
@@ -61,6 +61,9 @@ public:
InitialState initialState() const { return fInitialState; }
private:
+ void walkStack(const SkClipStack&, const SkRect& queryBounds);
+ bool intersectIBounds(const SkIRect&);
+
SkIRect fIBounds;
bool fHasIBounds;
ElementList fElements;