diff options
author | 2017-03-10 00:21:52 -0500 | |
---|---|---|
committer | 2017-03-10 14:13:15 +0000 | |
commit | 7ba4d710519787a89142d950d021fd9f6f42d049 (patch) | |
tree | d49a64fda08e4bc44a379c432ca81d0098b74dc0 /src/gpu/GrClipStackClip.h | |
parent | d37f22b1e81be69d05e9422c305a0595952695d7 (diff) |
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 <bsalomon@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/gpu/GrClipStackClip.h')
-rw-r--r-- | src/gpu/GrClipStackClip.h | 6 |
1 files changed, 3 insertions, 3 deletions
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<const SkClipStack> fStack; + SkIPoint fOrigin; + const SkClipStack* fStack; }; #endif // GrClipStackClip_DEFINED |