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