| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 */ | 283 */ |
| 284 void emitAll(SkWStream* stream, | 284 void emitAll(SkWStream* stream, |
| 285 const SkPDFObjNumMap& objNumMap, | 285 const SkPDFObjNumMap& objNumMap, |
| 286 const SkPDFSubstituteMap& substitutes) const; | 286 const SkPDFSubstituteMap& substitutes) const; |
| 287 | 287 |
| 288 private: | 288 private: |
| 289 struct Record { | 289 struct Record { |
| 290 SkPDFUnion fKey; | 290 SkPDFUnion fKey; |
| 291 SkPDFUnion fValue; | 291 SkPDFUnion fValue; |
| 292 Record(SkPDFUnion&&, SkPDFUnion&&); | 292 Record(SkPDFUnion&&, SkPDFUnion&&); |
| 293 Record(Record&&); | 293 Record(Record&&) = default; |
| 294 Record& operator=(Record&&); | 294 Record& operator=(Record&&) = default; |
| 295 Record(const Record&) = delete; | 295 Record(const Record&) = delete; |
| 296 Record& operator=(const Record&) = delete; | 296 Record& operator=(const Record&) = delete; |
| 297 }; | 297 }; |
| 298 SkTArray<Record> fRecords; | 298 SkTArray<Record> fRecords; |
| 299 SkDEBUGCODE(bool fDumped;) | 299 SkDEBUGCODE(bool fDumped;) |
| 300 }; | 300 }; |
| 301 | 301 |
| 302 /** \class SkPDFSharedStream | 302 /** \class SkPDFSharedStream |
| 303 | 303 |
| 304 This class takes an asset and assumes that it is backed by | 304 This class takes an asset and assumes that it is backed by |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 }; | 428 }; |
| 429 | 429 |
| 430 #ifdef SK_PDF_IMAGE_STATS | 430 #ifdef SK_PDF_IMAGE_STATS |
| 431 extern SkAtomic<int> gDrawImageCalls; | 431 extern SkAtomic<int> gDrawImageCalls; |
| 432 extern SkAtomic<int> gJpegImageObjects; | 432 extern SkAtomic<int> gJpegImageObjects; |
| 433 extern SkAtomic<int> gRegularImageObjects; | 433 extern SkAtomic<int> gRegularImageObjects; |
| 434 extern void SkPDFImageDumpStats(); | 434 extern void SkPDFImageDumpStats(); |
| 435 #endif // SK_PDF_IMAGE_STATS | 435 #endif // SK_PDF_IMAGE_STATS |
| 436 | 436 |
| 437 #endif | 437 #endif |
| OLD | NEW |