| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |