Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Unified Diff: dm/DMSrcSink.h

Issue 859623002: DM: Don't hold onto data longer than needed. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMSrcSink.h
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index 76e5968adfadb6be5a4f3c1d1011bb81fcdc1b31..e078d7eabf8323ff8f9dbf5b9ec270d83bce0a65 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;
};
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698