From 7ba4d710519787a89142d950d021fd9f6f42d049 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Fri, 10 Mar 2017 00:21:52 -0500 Subject: clipstacks can be on the stack or embedded, therefore should not be ref-counted BUG=skia: Change-Id: I7e16034d463a1db1baac404f775cf33076cbbf73 Reviewed-on: https://skia-review.googlesource.com/9509 Reviewed-by: Brian Salomon Commit-Queue: Mike Reed --- src/gpu/GrClipStackClip.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gpu') diff --git a/src/gpu/GrClipStackClip.h b/src/gpu/GrClipStackClip.h index b8c5d17286..660759516d 100644 --- a/src/gpu/GrClipStackClip.h +++ b/src/gpu/GrClipStackClip.h @@ -26,7 +26,7 @@ public: 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; @@ -62,8 +62,8 @@ private: const GrRenderTargetContext*, const GrReducedClip&); - SkIPoint fOrigin; - sk_sp fStack; + SkIPoint fOrigin; + const SkClipStack* fStack; }; #endif // GrClipStackClip_DEFINED -- cgit v1.2.3