diff options
author | edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-27 19:45:11 +0000 |
---|---|---|
committer | edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-27 19:45:11 +0000 |
commit | 194b7cdb5024719aeb7e2878f69b8f4b144aa9c4 (patch) | |
tree | 69643441bfd4e03cff4f055b63c6060b878420f9 /tests/PDFPrimitivesTest.cpp | |
parent | 54f0d1b7113cb0dc184e522539aab1030a28a421 (diff) |
resubmit after fixing assert issue: https://codereview.appspot.com/6744050
git-svn-id: http://skia.googlecode.com/svn/trunk@7892 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 9d52fcdc49..899daad03d 100644 --- a/tests/PDFPrimitivesTest.cpp +++ b/tests/PDFPrimitivesTest.cpp @@ -21,10 +21,10 @@ class SkPDFTestDict : public SkPDFDict { public: - void getResources(SkTDArray<SkPDFObject*>* resourceList) { - resourceList->setReserve(resourceList->count() + fResources.count()); + virtual void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects, + SkTSet<SkPDFObject*>* newResourceObjects) { for (int i = 0; i < fResources.count(); i++) { - resourceList->push(fResources[i]); + newResourceObjects->add(fResources[i]); fResources[i]->ref(); } } |