OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkPDFCatalog_DEFINED | 10 #ifndef SkPDFCatalog_DEFINED |
(...skipping 27 matching lines...) Expand all Loading... |
38 /** Set substitute object for the passed object. | 38 /** Set substitute object for the passed object. |
39 Refs substitute. | 39 Refs substitute. |
40 */ | 40 */ |
41 void setSubstitute(SkPDFObject* original, SkPDFObject* substitute); | 41 void setSubstitute(SkPDFObject* original, SkPDFObject* substitute); |
42 | 42 |
43 /** Find and return any substitute object set for the passed object. If | 43 /** Find and return any substitute object set for the passed object. If |
44 * there is none, return the passed object. | 44 * there is none, return the passed object. |
45 */ | 45 */ |
46 SkPDFObject* getSubstituteObject(SkPDFObject* object) const; | 46 SkPDFObject* getSubstituteObject(SkPDFObject* object) const; |
47 | 47 |
| 48 const SkTDArray<SkPDFObject*>& objects() const { return fObjects; } |
| 49 |
48 private: | 50 private: |
| 51 SkTDArray<SkPDFObject*> fObjects; |
49 SkTHashMap<SkPDFObject*, int32_t> fObjectNumbers; | 52 SkTHashMap<SkPDFObject*, int32_t> fObjectNumbers; |
50 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; | 53 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; |
51 }; | 54 }; |
52 | 55 |
53 #endif | 56 #endif |
OLD | NEW |