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