OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #ifndef SkPDFTypes_DEFINED | 9 #ifndef SkPDFTypes_DEFINED |
10 #define SkPDFTypes_DEFINED | 10 #define SkPDFTypes_DEFINED |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 SkPDFUnion(SkPDFUnion&& other); | 70 SkPDFUnion(SkPDFUnion&& other); |
71 SkPDFUnion& operator=(SkPDFUnion&& other); | 71 SkPDFUnion& operator=(SkPDFUnion&& other); |
72 | 72 |
73 ~SkPDFUnion(); | 73 ~SkPDFUnion(); |
74 | 74 |
75 /** The following nine functions are the standard way of creating | 75 /** The following nine functions are the standard way of creating |
76 SkPDFUnion objects. */ | 76 SkPDFUnion objects. */ |
77 | 77 |
78 static SkPDFUnion Int(int32_t); | 78 static SkPDFUnion Int(int32_t); |
79 | 79 |
| 80 static SkPDFUnion Int(size_t); |
| 81 |
80 static SkPDFUnion Bool(bool); | 82 static SkPDFUnion Bool(bool); |
81 | 83 |
82 static SkPDFUnion Scalar(SkScalar); | 84 static SkPDFUnion Scalar(SkScalar); |
83 | 85 |
84 /** These two functions do NOT take ownership of ptr, and do NOT | 86 /** These two functions do NOT take ownership of ptr, and do NOT |
85 copy the string. Suitable for passing in static const | 87 copy the string. Suitable for passing in static const |
86 strings. For example: | 88 strings. For example: |
87 SkPDFUnion n = SkPDFUnion::Name("Length"); | 89 SkPDFUnion n = SkPDFUnion::Name("Length"); |
88 SkPDFUnion u = SkPDFUnion::String("Identity"); */ | 90 SkPDFUnion u = SkPDFUnion::String("Identity"); */ |
89 | 91 |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 431 |
430 SkPDFObject* operator()(SkPDFObject* o) const { | 432 SkPDFObject* operator()(SkPDFObject* o) const { |
431 return this->getSubstitute(o); | 433 return this->getSubstitute(o); |
432 } | 434 } |
433 | 435 |
434 private: | 436 private: |
435 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; | 437 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; |
436 }; | 438 }; |
437 | 439 |
438 #endif | 440 #endif |
OLD | NEW |