aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFBitmap.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-02-27 12:41:03 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-27 12:41:03 -0800
commit2e3f9d8a9309686eeb4c76ccfde5800da87a68b3 (patch)
treed4a9837f39b384086705102850610a515e2c5e74 /src/pdf/SkPDFBitmap.h
parent4f569beac777afde2f2dd9079a52535f8e7519b3 (diff)
PDF: Canon now owns a reference to all interned objects
Add SkPDFCanon::reset function to unref all objects. No longer possible to remove object from canon Motivation: this doesn't change these object's lifetime, (they will still be fully unrefed when SkDocument::close() is called, but we no longer have to remove them from the array when their destructor is called. Review URL: https://codereview.chromium.org/966863002
Diffstat (limited to 'src/pdf/SkPDFBitmap.h')
-rw-r--r--src/pdf/SkPDFBitmap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pdf/SkPDFBitmap.h b/src/pdf/SkPDFBitmap.h
index eae6877a12..45a8aa6350 100644
--- a/src/pdf/SkPDFBitmap.h
+++ b/src/pdf/SkPDFBitmap.h
@@ -40,10 +40,9 @@ public:
}
private:
- SkPDFCanon* const fCanon;
const SkBitmap fBitmap;
const SkAutoTUnref<SkPDFObject> fSMask;
- SkPDFBitmap(SkPDFCanon*, const SkBitmap&, SkPDFObject*);
+ SkPDFBitmap(const SkBitmap&, SkPDFObject*);
void emitDict(SkWStream*, SkPDFCatalog*, size_t, bool) const;
};