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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 const SkPDFSubstituteMap& substitutes) final; | 173 const SkPDFSubstituteMap& substitutes) final; |
174 void addResources(SkPDFObjNumMap*, const SkPDFSubstituteMap&) const final; | 174 void addResources(SkPDFObjNumMap*, const SkPDFSubstituteMap&) const final; |
175 SkPDFAtom(SkPDFUnion&& v) : fValue(v.move()) {} | 175 SkPDFAtom(SkPDFUnion&& v) : fValue(v.move()) {} |
176 | 176 |
177 private: | 177 private: |
178 const SkPDFUnion fValue; | 178 const SkPDFUnion fValue; |
179 typedef SkPDFObject INHERITED; | 179 typedef SkPDFObject INHERITED; |
180 }; | 180 }; |
181 #endif // 0 | 181 #endif // 0 |
182 | 182 |
183 class SkPDFScalar { | 183 //////////////////////////////////////////////////////////////////////////////// |
184 public: | |
185 static void Append(SkScalar value, SkWStream* stream); | |
186 }; | |
187 | |
188 class SkPDFString { | |
189 public: | |
190 static SkString FormatString(const char* input, size_t len); | |
191 static const size_t kMaxLen = 65535; | |
192 }; | |
193 | |
194 | 184 |
195 /** \class SkPDFArray | 185 /** \class SkPDFArray |
196 | 186 |
197 An array object in a PDF. | 187 An array object in a PDF. |
198 */ | 188 */ |
199 class SkPDFArray : public SkPDFObject { | 189 class SkPDFArray : public SkPDFObject { |
200 public: | 190 public: |
201 SK_DECLARE_INST_COUNT(SkPDFArray) | 191 SK_DECLARE_INST_COUNT(SkPDFArray) |
202 | 192 |
203 static const int kMaxLen = 8191; | 193 static const int kMaxLen = 8191; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 | 352 |
363 SkPDFObject* operator()(SkPDFObject* o) const { | 353 SkPDFObject* operator()(SkPDFObject* o) const { |
364 return this->getSubstitute(o); | 354 return this->getSubstitute(o); |
365 } | 355 } |
366 | 356 |
367 private: | 357 private: |
368 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; | 358 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; |
369 }; | 359 }; |
370 | 360 |
371 #endif | 361 #endif |
OLD | NEW |