aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBigPicture.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-09-09 09:09:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-09 09:09:53 -0700
commit6c59d80858f453a426df9b07fdf3a8cc01e0b906 (patch)
tree1fc4c3c03062744c4382a40e608bdb147bebad09 /src/core/SkBigPicture.h
parent336cda3fc0e01cd80212e0ac133d65b60824868e (diff)
Port uses of SkLazyPtr to SkOncePtr.
This gives SkOncePtr a non-trivial destructor that uses std::default_delete by default. This is overrideable, as seen in SkColorTable. SK_DECLARE_STATIC_ONCE_PTR still just leaves its pointers hanging at EOP. BUG=skia: No public API changes. TBR=reed@google.com Committed: https://skia.googlesource.com/skia/+/a1254acdb344174e761f5061c820559dab64a74c Review URL: https://codereview.chromium.org/1322933005
Diffstat (limited to 'src/core/SkBigPicture.h')
-rw-r--r--src/core/SkBigPicture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkBigPicture.h b/src/core/SkBigPicture.h
index dfd6b800ac..2e42213539 100644
--- a/src/core/SkBigPicture.h
+++ b/src/core/SkBigPicture.h
@@ -8,7 +8,7 @@
#ifndef SkBigPicture_DEFINED
#define SkBigPicture_DEFINED
-#include "SkLazyPtr.h"
+#include "SkOncePtr.h"
#include "SkPicture.h"
#include "SkTemplates.h"
@@ -79,7 +79,7 @@ private:
const SkRect fCullRect;
const size_t fApproxBytesUsedBySubPictures;
- SkLazyPtr<const Analysis> fAnalysis;
+ SkOncePtr<const Analysis> fAnalysis;
SkAutoTUnref<const SkRecord> fRecord;
SkAutoTDelete<const SnapshotArray> fDrawablePicts;
SkAutoTUnref<const SkBBoxHierarchy> fBBH;