diff options
author | mtklein <mtklein@chromium.org> | 2015-01-18 07:05:01 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-18 07:05:01 -0800 |
commit | 75d98fd6f23fc73aad3ce87d6c4b6c41c2d1536e (patch) | |
tree | 7fa788bdadc2f3b6d221901fd0123b1d6875786a /dm/DMSrcSink.h | |
parent | c9b62ad60c8a7beaf34923d33f48a25360d54699 (diff) |
DM: Don't hold onto data longer than needed.
On my laptop, this cuts peak memory usage by more than half.
BUG=skia:3255
Review URL: https://codereview.chromium.org/859623002
Diffstat (limited to 'dm/DMSrcSink.h')
-rw-r--r-- | dm/DMSrcSink.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h index 76e5968adf..e078d7eabf 100644 --- a/dm/DMSrcSink.h +++ b/dm/DMSrcSink.h @@ -47,9 +47,6 @@ static const int kNumEnclaves = kPDFSink_Enclave + 1; /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ -void SafeUnref(SkPicture*); // These need external linkage (and specific types). -void SafeUnref(SkData*); - class GMSrc : public Src { public: explicit GMSrc(skiagm::GMRegistry::Factory); @@ -71,7 +68,6 @@ public: private: SkString fPath; int fSubsets; - SkLazyPtr<SkData, SafeUnref> fEncoded; }; class SKPSrc : public Src { @@ -83,7 +79,6 @@ public: Name name() const SK_OVERRIDE; private: SkString fPath; - SkLazyPtr<SkPicture, SafeUnref> fPic; }; /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ |