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

Side by Side Diff: src/pdf/SkPDFDevice.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/SkPDFBitmap.cpp ('k') | src/pdf/SkPDFDocument.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 2011 Google Inc. 2 * Copyright 2011 Google Inc.
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 #ifndef SkPDFDevice_DEFINED 8 #ifndef SkPDFDevice_DEFINED
9 #define SkPDFDevice_DEFINED 9 #define SkPDFDevice_DEFINED
10 10
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 SkTArray<RectWithData> fLinkToURLs; 226 SkTArray<RectWithData> fLinkToURLs;
227 SkTArray<RectWithData> fLinkToDestinations; 227 SkTArray<RectWithData> fLinkToDestinations;
228 SkTArray<NamedDestination> fNamedDestinations; 228 SkTArray<NamedDestination> fNamedDestinations;
229 229
230 SkTDArray<SkPDFObject*> fGraphicStateResources; 230 SkTDArray<SkPDFObject*> fGraphicStateResources;
231 SkTDArray<SkPDFObject*> fXObjectResources; 231 SkTDArray<SkPDFObject*> fXObjectResources;
232 SkTDArray<SkPDFFont*> fFontResources; 232 SkTDArray<SkPDFFont*> fFontResources;
233 SkTDArray<SkPDFObject*> fShaderResources; 233 SkTDArray<SkPDFObject*> fShaderResources;
234 234
235 SkAutoTDelete<ContentEntry> fContentEntries; 235 std::unique_ptr<ContentEntry> fContentEntries;
236 ContentEntry* fLastContentEntry; 236 ContentEntry* fLastContentEntry;
237 237
238 const SkClipStack* fClipStack; 238 const SkClipStack* fClipStack;
239 239
240 // Glyph ids used for each font on this device. 240 // Glyph ids used for each font on this device.
241 SkAutoTDelete<SkPDFGlyphSetMap> fFontGlyphUsage; 241 std::unique_ptr<SkPDFGlyphSetMap> fFontGlyphUsage;
242 242
243 SkScalar fRasterDpi; 243 SkScalar fRasterDpi;
244 244
245 SkBitmap fLegacyBitmap; 245 SkBitmap fLegacyBitmap;
246 246
247 SkPDFDocument* fDocument; 247 SkPDFDocument* fDocument;
248 //////////////////////////////////////////////////////////////////////////// 248 ////////////////////////////////////////////////////////////////////////////
249 249
250 SkPDFDevice(SkISize pageSize, 250 SkPDFDevice(SkISize pageSize,
251 SkScalar rasterDpi, 251 SkScalar rasterDpi,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 typedef SkBaseDevice INHERITED; 314 typedef SkBaseDevice INHERITED;
315 315
316 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 316 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
317 // an SkPDFDevice 317 // an SkPDFDevice
318 //friend class SkDocument_PDF; 318 //friend class SkDocument_PDF;
319 //friend class SkPDFImageShader; 319 //friend class SkPDFImageShader;
320 }; 320 };
321 321
322 #endif 322 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFBitmap.cpp ('k') | src/pdf/SkPDFDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698