diff options
author | 2016-08-05 22:32:12 -0700 | |
---|---|---|
committer | 2016-08-05 22:32:12 -0700 | |
commit | c6f411e72b1fea6608f540f64a57bcacbe3378cd (patch) | |
tree | 73771d2a0b8b11fbc632879daaaf01cabfde288d /include/gpu/GrClip.h | |
parent | 4c1abdcd21d65bb34a6b4aea969ef4485e117e67 (diff) |
Merge GrClipMaskManager into GrClipStackClip
TBR=bsalomon@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2196393007
Review-Url: https://codereview.chromium.org/2196393007
Diffstat (limited to 'include/gpu/GrClip.h')
-rw-r--r-- | include/gpu/GrClip.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/gpu/GrClip.h b/include/gpu/GrClip.h index c74d25d77a..03b9f65b9c 100644 --- a/include/gpu/GrClip.h +++ b/include/gpu/GrClip.h @@ -10,7 +10,6 @@ #include "GrFragmentProcessor.h" #include "GrTypesPriv.h" -#include "SkClipStack.h" class GrDrawContext; @@ -270,37 +269,4 @@ private: bool fHasStencilClip; }; -/** - * GrClipStackClip can apply a generic SkClipStack to the draw state. It may generate clip masks or - * write to the stencil buffer during apply(). - */ -class GrClipStackClip final : public GrClip { -public: - GrClipStackClip(const SkClipStack* stack = nullptr, const SkIPoint* origin = nullptr) { - this->reset(stack, origin); - } - - void reset(const SkClipStack* stack = nullptr, const SkIPoint* origin = nullptr) { - fOrigin = origin ? *origin : SkIPoint::Make(0, 0); - fStack.reset(SkSafeRef(stack)); - } - - const SkIPoint& origin() const { return fOrigin; } - const SkClipStack* clipStack() const { return fStack; } - - bool quickContains(const SkRect&) const final; - void getConservativeBounds(int width, int height, SkIRect* devResult, - bool* isIntersectionOfRects) const final; - bool apply(GrContext*, - GrDrawContext*, - const SkRect* devBounds, - bool useHWAA, - bool hasUserStencilSettings, - GrAppliedClip* out) const final; - -private: - SkIPoint fOrigin; - SkAutoTUnref<const SkClipStack> fStack; -}; - #endif |