| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkPDFDevice_DEFINED | 10 #ifndef SkPDFDevice_DEFINED |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 friend class ScopedContentEntry; | 196 friend class ScopedContentEntry; |
| 197 | 197 |
| 198 SkISize fPageSize; | 198 SkISize fPageSize; |
| 199 SkISize fContentSize; | 199 SkISize fContentSize; |
| 200 SkMatrix fInitialTransform; | 200 SkMatrix fInitialTransform; |
| 201 SkClipStack fExistingClipStack; | 201 SkClipStack fExistingClipStack; |
| 202 SkRegion fExistingClipRegion; | 202 SkRegion fExistingClipRegion; |
| 203 SkPDFArray* fAnnotations; | 203 SkPDFArray* fAnnotations; |
| 204 SkTDArray<NamedDestination*> fNamedDestinations; | 204 SkTDArray<NamedDestination*> fNamedDestinations; |
| 205 | 205 |
| 206 SkTDArray<SkPDFGraphicState*> fGraphicStateResources; | 206 SkTDArray<SkPDFObject*> fGraphicStateResources; |
| 207 SkTDArray<SkPDFObject*> fXObjectResources; | 207 SkTDArray<SkPDFObject*> fXObjectResources; |
| 208 SkTDArray<SkPDFFont*> fFontResources; | 208 SkTDArray<SkPDFFont*> fFontResources; |
| 209 SkTDArray<SkPDFObject*> fShaderResources; | 209 SkTDArray<SkPDFObject*> fShaderResources; |
| 210 | 210 |
| 211 SkAutoTDelete<ContentEntry> fContentEntries; | 211 SkAutoTDelete<ContentEntry> fContentEntries; |
| 212 ContentEntry* fLastContentEntry; | 212 ContentEntry* fLastContentEntry; |
| 213 SkAutoTDelete<ContentEntry> fMarginContentEntries; | 213 SkAutoTDelete<ContentEntry> fMarginContentEntries; |
| 214 ContentEntry* fLastMarginContentEntry; | 214 ContentEntry* fLastMarginContentEntry; |
| 215 DrawingArea fDrawingArea; | 215 DrawingArea fDrawingArea; |
| 216 | 216 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 SkPDFFormXObject* dst, | 264 SkPDFFormXObject* dst, |
| 265 SkPath* shape); | 265 SkPath* shape); |
| 266 bool isContentEmpty(); | 266 bool isContentEmpty(); |
| 267 | 267 |
| 268 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix, | 268 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix, |
| 269 const SkClipStack& clipStack, | 269 const SkClipStack& clipStack, |
| 270 const SkRegion& clipRegion, | 270 const SkRegion& clipRegion, |
| 271 const SkPaint& paint, | 271 const SkPaint& paint, |
| 272 bool hasText, | 272 bool hasText, |
| 273 GraphicStateEntry* entry); | 273 GraphicStateEntry* entry); |
| 274 int addGraphicStateResource(SkPDFGraphicState* gs); | 274 int addGraphicStateResource(SkPDFObject* gs); |
| 275 int addXObjectResource(SkPDFObject* xObject); | 275 int addXObjectResource(SkPDFObject* xObject); |
| 276 | 276 |
| 277 void updateFont(const SkPaint& paint, uint16_t glyphID, | 277 void updateFont(const SkPaint& paint, uint16_t glyphID, |
| 278 ContentEntry* contentEntry); | 278 ContentEntry* contentEntry); |
| 279 int getFontResourceIndex(SkTypeface* typeface, uint16_t glyphID); | 279 int getFontResourceIndex(SkTypeface* typeface, uint16_t glyphID); |
| 280 | 280 |
| 281 void internalDrawPaint(const SkPaint& paint, ContentEntry* contentEntry); | 281 void internalDrawPaint(const SkPaint& paint, ContentEntry* contentEntry); |
| 282 void internalDrawBitmap(const SkMatrix& matrix, | 282 void internalDrawBitmap(const SkMatrix& matrix, |
| 283 const SkClipStack* clipStack, | 283 const SkClipStack* clipStack, |
| 284 const SkRegion& clipRegion, | 284 const SkRegion& clipRegion, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 310 | 310 |
| 311 typedef SkBaseDevice INHERITED; | 311 typedef SkBaseDevice INHERITED; |
| 312 | 312 |
| 313 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 313 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
| 314 // an SkPDFDevice | 314 // an SkPDFDevice |
| 315 //friend class SkDocument_PDF; | 315 //friend class SkDocument_PDF; |
| 316 //friend class SkPDFImageShader; | 316 //friend class SkPDFImageShader; |
| 317 }; | 317 }; |
| 318 | 318 |
| 319 #endif | 319 #endif |
| OLD | NEW |