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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 266 |
267 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix, | 267 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix, |
268 const SkClipStack& clipStack, | 268 const SkClipStack& clipStack, |
269 const SkRegion& clipRegion, | 269 const SkRegion& clipRegion, |
270 const SkPaint& paint, | 270 const SkPaint& paint, |
271 bool hasText, | 271 bool hasText, |
272 GraphicStateEntry* entry); | 272 GraphicStateEntry* entry); |
273 int addGraphicStateResource(SkPDFObject* gs); | 273 int addGraphicStateResource(SkPDFObject* gs); |
274 int addXObjectResource(SkPDFObject* xObject); | 274 int addXObjectResource(SkPDFObject* xObject); |
275 | 275 |
276 void updateFont(const SkPaint& paint, uint16_t glyphID, | 276 void updateFont(const SkPaint& paint, uint16_t glyphID, ContentEntry* conten
tEntry); |
277 ContentEntry* contentEntry); | |
278 int getFontResourceIndex(SkTypeface* typeface, uint16_t glyphID); | 277 int getFontResourceIndex(SkTypeface* typeface, uint16_t glyphID); |
279 | 278 |
280 void internalDrawPaint(const SkPaint& paint, ContentEntry* contentEntry); | 279 void internalDrawPaint(const SkPaint& paint, ContentEntry* contentEntry); |
281 void internalDrawBitmap(const SkMatrix& matrix, | 280 void internalDrawBitmap(const SkMatrix& matrix, |
282 const SkClipStack* clipStack, | 281 const SkClipStack* clipStack, |
283 const SkRegion& clipRegion, | 282 const SkRegion& clipRegion, |
284 const SkBitmap& bitmap, | 283 const SkBitmap& bitmap, |
285 const SkIRect* srcRect, | 284 const SkIRect* srcRect, |
286 const SkPaint& paint); | 285 const SkPaint& paint); |
287 | 286 |
(...skipping 19 matching lines...) Expand all Loading... |
307 | 306 |
308 typedef SkBaseDevice INHERITED; | 307 typedef SkBaseDevice INHERITED; |
309 | 308 |
310 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 309 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
311 // an SkPDFDevice | 310 // an SkPDFDevice |
312 //friend class SkDocument_PDF; | 311 //friend class SkDocument_PDF; |
313 //friend class SkPDFImageShader; | 312 //friend class SkPDFImageShader; |
314 }; | 313 }; |
315 | 314 |
316 #endif | 315 #endif |
OLD | NEW |