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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 const SkIRect* srcRect, | 289 const SkIRect* srcRect, |
290 const SkPaint& paint); | 290 const SkPaint& paint); |
291 | 291 |
292 /** Helper method for copyContentToData. It is responsible for copying the | 292 /** Helper method for copyContentToData. It is responsible for copying the |
293 * list of content entries |entry| to |data|. | 293 * list of content entries |entry| to |data|. |
294 */ | 294 */ |
295 void copyContentEntriesToData(ContentEntry* entry, SkWStream* data) const; | 295 void copyContentEntriesToData(ContentEntry* entry, SkWStream* data) const; |
296 | 296 |
297 #ifdef SK_PDF_USE_PATHOPS | 297 #ifdef SK_PDF_USE_PATHOPS |
298 bool handleInversePath(const SkDraw& d, const SkPath& origPath, | 298 bool handleInversePath(const SkDraw& d, const SkPath& origPath, |
299 const SkPaint& paint, bool pathIsMutable); | 299 const SkPaint& paint, bool pathIsMutable, |
| 300 const SkMatrix* matrix = NULL); |
300 #endif | 301 #endif |
301 bool handleRectAnnotation(const SkRect& r, const SkMatrix& matrix, | 302 bool handleRectAnnotation(const SkRect& r, const SkMatrix& matrix, |
302 const SkPaint& paint); | 303 const SkPaint& paint); |
303 bool handlePointAnnotation(const SkPoint* points, size_t count, | 304 bool handlePointAnnotation(const SkPoint* points, size_t count, |
304 const SkMatrix& matrix, const SkPaint& paint); | 305 const SkMatrix& matrix, const SkPaint& paint); |
305 SkPDFDict* createLinkAnnotation(const SkRect& r, const SkMatrix& matrix); | 306 SkPDFDict* createLinkAnnotation(const SkRect& r, const SkMatrix& matrix); |
306 void handleLinkToURL(SkData* urlData, const SkRect& r, | 307 void handleLinkToURL(SkData* urlData, const SkRect& r, |
307 const SkMatrix& matrix); | 308 const SkMatrix& matrix); |
308 void handleLinkToNamedDest(SkData* nameData, const SkRect& r, | 309 void handleLinkToNamedDest(SkData* nameData, const SkRect& r, |
309 const SkMatrix& matrix); | 310 const SkMatrix& matrix); |
310 void defineNamedDestination(SkData* nameData, const SkPoint& point, | 311 void defineNamedDestination(SkData* nameData, const SkPoint& point, |
311 const SkMatrix& matrix); | 312 const SkMatrix& matrix); |
312 | 313 |
313 typedef SkBitmapDevice INHERITED; | 314 typedef SkBitmapDevice INHERITED; |
314 }; | 315 }; |
315 | 316 |
316 #endif | 317 #endif |
OLD | NEW |