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 /include/pdf | |
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 'include/pdf')
-rw-r--r-- | include/pdf/SkPDFDevice.h | 12 | ||||
-rw-r--r-- | include/pdf/SkPDFDocument.h | 4 |
2 files changed, 3 insertions, 13 deletions
diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h index f8261b5da1..90379f9f6b 100644 --- a/include/pdf/SkPDFDevice.h +++ b/include/pdf/SkPDFDevice.h @@ -30,7 +30,6 @@ class SkPDFGraphicState; class SkPDFObject; class SkPDFShader; class SkPDFStream; -template <typename T> class SK_API SkTSet; // Private classes. struct ContentEntry; @@ -133,19 +132,12 @@ public: SK_API SkPDFDict* getResourceDict(); /** Get the list of resources (PDF objects) used on this page. - * This method will add to newResourceObjects any objects that this method - * depends on, but not already in knownResourceObjects. This might operate - * recursively so if this object depends on another object and that object - * depends on two more, all three objects will be added. - * - * @param knownResourceObjects The set of resources to be ignored. - * @param newResourceObjects The set to append dependant resources to. + * @param resourceList A list to append the resources to. * @param recursive If recursive is true, get the resources of the * device's resources recursively. (Useful for adding * objects to the catalog.) */ - SK_API void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects, - SkTSet<SkPDFObject*>* newResourceObjects, + SK_API void getResources(SkTDArray<SkPDFObject*>* resourceList, bool recursive) const; /** Get the fonts used on this device. diff --git a/include/pdf/SkPDFDocument.h b/include/pdf/SkPDFDocument.h index 8f4ee48564..cb786c7133 100644 --- a/include/pdf/SkPDFDocument.h +++ b/include/pdf/SkPDFDocument.h @@ -21,7 +21,6 @@ class SkPDFDict; class SkPDFPage; class SkPDFObject; class SkWStream; -template <typename T> class SK_API SkTSet; /** \class SkPDFDocument @@ -80,8 +79,7 @@ private: SkTDArray<SkPDFPage*> fPages; SkTDArray<SkPDFDict*> fPageTree; SkPDFDict* fDocCatalog; - SkTSet<SkPDFObject*>* fFirstPageResources; - SkTSet<SkPDFObject*>* fOtherPageResources; + SkTDArray<SkPDFObject*> fPageResources; SkTDArray<SkPDFObject*> fSubstitutes; int fSecondPageFirstResourceIndex; |