diff options
author | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-01 22:19:44 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-01 22:19:44 +0000 |
commit | f7c157610ff85f7323f5e213b62478dcc66edbec (patch) | |
tree | f49c4a700685466c0ad80b2f0f5c0b04b205f1b9 /include/pdf/SkPDFStream.h | |
parent | 6f7fbc9fbb584b9b9fa6ed3a677d71ecd49aafce (diff) |
[PDF] Clean up ref counting.
Return ref'd objs where possible enabling removal of many SkRefPtr<> variables.
Review URL: http://codereview.appspot.com/4029051
git-svn-id: http://skia.googlecode.com/svn/trunk@750 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/pdf/SkPDFStream.h')
-rw-r--r-- | include/pdf/SkPDFStream.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/pdf/SkPDFStream.h b/include/pdf/SkPDFStream.h index 10a40b6f98..5310b4e896 100644 --- a/include/pdf/SkPDFStream.h +++ b/include/pdf/SkPDFStream.h @@ -43,17 +43,19 @@ public: bool indirect); virtual size_t getOutputSize(SkPDFCatalog* catalog, bool indirect); - /** Add the value to the stream dictionary with the given key. + /** Add the value to the stream dictionary with the given key. Refs value. * @param key The key for this dictionary entry. * @param value The value for this dictionary entry. + * @return The value argument is returned. */ - void insert(SkPDFName* key, SkPDFObject* value); + SkPDFObject* insert(SkPDFName* key, SkPDFObject* value); - /** Add the value to the stream dictionary with the given key. + /** Add the value to the stream dictionary with the given key. Refs value. * @param key The text of the key for this dictionary entry. * @param value The value for this dictionary entry. + * @return The value argument is returned. */ - void insert(const char key[], SkPDFObject* value); + SkPDFObject* insert(const char key[], SkPDFObject* value); private: SkPDFDict fDict; |