BUG=skia:
Change-Id: I7e16034d463a1db1baac404f775cf33076cbbf73
Reviewed-on: https://skia-review.googlesource.com/9509
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Mike Reed <reed@google.com>
// (i.e., the fSaveCount in force when it was added). Restores are thus
// implemented by removing clips from fDeque that have an fSaveCount larger
// then the freshly decremented count.
-class SK_API SkClipStack : public SkNVRefCnt<SkClipStack> {
+class SkClipStack {
public:
enum BoundsType {
// The bounding box contains all the pixels that can be written to
void reset(const SkClipStack* stack = nullptr, const SkIPoint* origin = nullptr) {
fOrigin = origin ? *origin : SkIPoint::Make(0, 0);
- fStack.reset(SkSafeRef(stack));
+ fStack = stack;
}
bool quickContains(const SkRect&) const final;
const GrRenderTargetContext*,
const GrReducedClip&);
- SkIPoint fOrigin;
- sk_sp<const SkClipStack> fStack;
+ SkIPoint fOrigin;
+ const SkClipStack* fStack;
};
#endif // GrClipStackClip_DEFINED