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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix, | 271 void populateGraphicStateEntryFromPaint(const SkMatrix& matrix, |
272 const SkClipStack& clipStack, | 272 const SkClipStack& clipStack, |
273 const SkRegion& clipRegion, | 273 const SkRegion& clipRegion, |
274 const SkPaint& paint, | 274 const SkPaint& paint, |
275 bool hasText, | 275 bool hasText, |
276 GraphicStateEntry* entry); | 276 GraphicStateEntry* entry); |
277 int addGraphicStateResource(SkPDFObject* gs); | 277 int addGraphicStateResource(SkPDFObject* gs); |
278 int addXObjectResource(SkPDFObject* xObject); | 278 int addXObjectResource(SkPDFObject* xObject); |
279 | 279 |
280 // returns false when a valid SkFont can not be produced | 280 // returns nullptr when a valid SkFont can not be produced |
281 bool updateFont(const SkPaint& paint, uint16_t glyphID, ContentEntry* conten
tEntry); | 281 SkPDFFont* updateFont(SkTypeface* typeface, |
| 282 SkScalar textSize, |
| 283 uint16_t glyphID, |
| 284 ContentEntry* contentEntry); |
282 int getFontResourceIndex(SkTypeface* typeface, uint16_t glyphID); | 285 int getFontResourceIndex(SkTypeface* typeface, uint16_t glyphID); |
283 | 286 |
284 | 287 |
285 void internalDrawText(const SkDraw&, const void*, size_t, const SkScalar pos
[], | 288 void internalDrawText(const SkDraw&, const void*, size_t, const SkScalar pos
[], |
286 SkTextBlob::GlyphPositioning, SkPoint, const SkPaint&)
; | 289 SkTextBlob::GlyphPositioning, SkPoint, const SkPaint&)
; |
287 | 290 |
288 | 291 |
289 void internalDrawPaint(const SkPaint& paint, ContentEntry* contentEntry); | 292 void internalDrawPaint(const SkPaint& paint, ContentEntry* contentEntry); |
290 | 293 |
291 void internalDrawImage(const SkMatrix& origMatrix, | 294 void internalDrawImage(const SkMatrix& origMatrix, |
(...skipping 10 matching lines...) Expand all Loading... |
302 | 305 |
303 typedef SkBaseDevice INHERITED; | 306 typedef SkBaseDevice INHERITED; |
304 | 307 |
305 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 308 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
306 // an SkPDFDevice | 309 // an SkPDFDevice |
307 //friend class SkDocument_PDF; | 310 //friend class SkDocument_PDF; |
308 //friend class SkPDFImageShader; | 311 //friend class SkPDFImageShader; |
309 }; | 312 }; |
310 | 313 |
311 #endif | 314 #endif |
OLD | NEW |