Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/pdf/SkPDFTypes.h

Issue 1837553002: SkPDF s/SkAutoTDelete/std::unique_ptr/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-03-28 (Monday) 10:22:50 EDT Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFStream.cpp ('k') | src/pdf/SkPDFTypes.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 ~SkPDFSharedStream(); 308 ~SkPDFSharedStream();
309 SkPDFDict* dict() { return fDict.get(); } 309 SkPDFDict* dict() { return fDict.get(); }
310 void emitObject(SkWStream*, 310 void emitObject(SkWStream*,
311 const SkPDFObjNumMap&, 311 const SkPDFObjNumMap&,
312 const SkPDFSubstituteMap&) const override; 312 const SkPDFSubstituteMap&) const override;
313 void addResources(SkPDFObjNumMap*, 313 void addResources(SkPDFObjNumMap*,
314 const SkPDFSubstituteMap&) const override; 314 const SkPDFSubstituteMap&) const override;
315 void drop() override; 315 void drop() override;
316 316
317 private: 317 private:
318 SkAutoTDelete<SkStreamAsset> fAsset; 318 std::unique_ptr<SkStreamAsset> fAsset;
319 sk_sp<SkPDFDict> fDict; 319 sk_sp<SkPDFDict> fDict;
320 SkDEBUGCODE(bool fDumped;) 320 SkDEBUGCODE(bool fDumped;)
321 typedef SkPDFObject INHERITED; 321 typedef SkPDFObject INHERITED;
322 }; 322 };
323 323
324 //////////////////////////////////////////////////////////////////////////////// 324 ////////////////////////////////////////////////////////////////////////////////
325 325
326 /** \class SkPDFObjNumMap 326 /** \class SkPDFObjNumMap
327 327
328 The PDF Object Number Map manages object numbers. It is used to 328 The PDF Object Number Map manages object numbers. It is used to
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 }; 383 };
384 384
385 #ifdef SK_PDF_IMAGE_STATS 385 #ifdef SK_PDF_IMAGE_STATS
386 extern SkAtomic<int> gDrawImageCalls; 386 extern SkAtomic<int> gDrawImageCalls;
387 extern SkAtomic<int> gJpegImageObjects; 387 extern SkAtomic<int> gJpegImageObjects;
388 extern SkAtomic<int> gRegularImageObjects; 388 extern SkAtomic<int> gRegularImageObjects;
389 extern void SkPDFImageDumpStats(); 389 extern void SkPDFImageDumpStats();
390 #endif // SK_PDF_IMAGE_STATS 390 #endif // SK_PDF_IMAGE_STATS
391 391
392 #endif 392 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFStream.cpp ('k') | src/pdf/SkPDFTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698