diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-20 14:42:51 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-20 14:42:51 +0000 |
commit | acef3c408216f7ef41bad1532f7946dc067f2bae (patch) | |
tree | e3767b3737a449991e48972285265019d7af025a /tests/PDFPrimitivesTest.cpp | |
parent | 09fd4d216963c498c24ba355accce9337a5029a8 (diff) |
Reverting r8233 (Use SkSet in PDF)
git-svn-id: http://skia.googlecode.com/svn/trunk@8255 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PDFPrimitivesTest.cpp')
-rw-r--r-- | tests/PDFPrimitivesTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp index 4d48f1e2b1..cc89d6b806 100644 --- a/tests/PDFPrimitivesTest.cpp +++ b/tests/PDFPrimitivesTest.cpp @@ -21,10 +21,10 @@ class SkPDFTestDict : public SkPDFDict { public: - virtual void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects, - SkTSet<SkPDFObject*>* newResourceObjects) { + void getResources(SkTDArray<SkPDFObject*>* resourceList) { + resourceList->setReserve(resourceList->count() + fResources.count()); for (int i = 0; i < fResources.count(); i++) { - newResourceObjects->add(fResources[i]); + resourceList->push(fResources[i]); fResources[i]->ref(); } } |