diff options
Diffstat (limited to 'src/pdf/SkPDFFont.cpp')
-rwxr-xr-x | src/pdf/SkPDFFont.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp index 4602c68e1c..be16c76936 100755 --- a/src/pdf/SkPDFFont.cpp +++ b/src/pdf/SkPDFFont.cpp @@ -435,12 +435,7 @@ SkPDFFont::~SkPDFFont() { } void SkPDFFont::getResources(SkTDArray<SkPDFObject*>* resourceList) { - resourceList->setReserve(resourceList->count() + fResources.count()); - for (int i = 0; i < fResources.count(); i++) { - resourceList->push(fResources[i]); - fResources[i]->ref(); - fResources[i]->getResources(resourceList); - } + GetResourcesHelper(&fResources, resourceList); } SkTypeface* SkPDFFont::typeface() { |