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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 const SkPaint& paint); | 286 const SkPaint& paint); |
287 | 287 |
288 /** Helper method for copyContentToData. It is responsible for copying the | 288 /** Helper method for copyContentToData. It is responsible for copying the |
289 * list of content entries |entry| to |data|. | 289 * list of content entries |entry| to |data|. |
290 */ | 290 */ |
291 void copyContentEntriesToData(ContentEntry* entry, SkWStream* data) const; | 291 void copyContentEntriesToData(ContentEntry* entry, SkWStream* data) const; |
292 | 292 |
293 bool handleInversePath(const SkDraw& d, const SkPath& origPath, | 293 bool handleInversePath(const SkDraw& d, const SkPath& origPath, |
294 const SkPaint& paint, bool pathIsMutable, | 294 const SkPaint& paint, bool pathIsMutable, |
295 const SkMatrix* prePathMatrix = NULL); | 295 const SkMatrix* prePathMatrix = NULL); |
| 296 bool handleRectAnnotation(const SkRect& r, const SkMatrix& matrix, |
| 297 const SkPaint& paint); |
296 bool handlePointAnnotation(const SkPoint* points, size_t count, | 298 bool handlePointAnnotation(const SkPoint* points, size_t count, |
297 const SkMatrix& matrix, SkAnnotation* annot); | 299 const SkMatrix& matrix, const SkPaint& paint); |
298 void addAnnotation(SkPDFDict*); | 300 void addAnnotation(SkPDFDict*); |
| 301 void handleLinkToURL(SkData* urlData, const SkRect& r, |
| 302 const SkMatrix& matrix); |
| 303 void handleLinkToNamedDest(SkData* nameData, const SkRect& r, |
| 304 const SkMatrix& matrix); |
| 305 void defineNamedDestination(SkData* nameData, const SkPoint& point, |
| 306 const SkMatrix& matrix); |
299 | 307 |
300 typedef SkBaseDevice INHERITED; | 308 typedef SkBaseDevice INHERITED; |
301 | 309 |
302 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 310 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
303 // an SkPDFDevice | 311 // an SkPDFDevice |
304 //friend class SkDocument_PDF; | 312 //friend class SkDocument_PDF; |
305 //friend class SkPDFImageShader; | 313 //friend class SkPDFImageShader; |
306 }; | 314 }; |
307 | 315 |
308 #endif | 316 #endif |
OLD | NEW |