Index: src/pdf/SkPDFBitmap.cpp |
diff --git a/src/pdf/SkPDFBitmap.cpp b/src/pdf/SkPDFBitmap.cpp |
index 486dac44aa15655e7d9c32cc6a91c712cebb9519..765016dcf2d0d06f05b25cca2747649513ad0ef5 100644 |
--- a/src/pdf/SkPDFBitmap.cpp |
+++ b/src/pdf/SkPDFBitmap.cpp |
@@ -286,11 +286,10 @@ void PDFAlphaBitmap::emitDict(SkWStream* stream, |
//////////////////////////////////////////////////////////////////////////////// |
-void SkPDFBitmap::addResources(SkTSet<SkPDFObject*>* resourceSet, |
- SkPDFCatalog* catalog) const { |
+void SkPDFBitmap::addResources(SkPDFCatalog* catalog) const { |
if (fSMask.get()) { |
- if (resourceSet->add(fSMask.get())) { |
- fSMask->addResources(resourceSet, catalog); |
+ if (catalog->addObject(fSMask.get())) { |
+ fSMask->addResources(catalog); |
} |
} |
} |