Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: src/pdf/SkPDFDevice.h

Issue 1238503007: Reland "SkPDF: Annotations are clipped by canvas clip stack." (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Modify gm to reproduce the bug Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gm/annotated_text.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gm/annotated_text.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698