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

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

Issue 1099953002: [SkPDFDevice] Enable pathops-based inverse fills (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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 | « include/config/SkUserConfig.h ('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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 const SkRegion& clipRegion, 283 const SkRegion& clipRegion,
284 const SkBitmap& bitmap, 284 const SkBitmap& bitmap,
285 const SkIRect* srcRect, 285 const SkIRect* srcRect,
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 #ifdef SK_PDF_USE_PATHOPS
294 bool handleInversePath(const SkDraw& d, const SkPath& origPath, 293 bool handleInversePath(const SkDraw& d, const SkPath& origPath,
295 const SkPaint& paint, bool pathIsMutable, 294 const SkPaint& paint, bool pathIsMutable,
296 const SkMatrix* prePathMatrix = NULL); 295 const SkMatrix* prePathMatrix = NULL);
297 #endif
298 bool handleRectAnnotation(const SkRect& r, const SkMatrix& matrix, 296 bool handleRectAnnotation(const SkRect& r, const SkMatrix& matrix,
299 const SkPaint& paint); 297 const SkPaint& paint);
300 bool handlePointAnnotation(const SkPoint* points, size_t count, 298 bool handlePointAnnotation(const SkPoint* points, size_t count,
301 const SkMatrix& matrix, const SkPaint& paint); 299 const SkMatrix& matrix, const SkPaint& paint);
302 SkPDFDict* createLinkAnnotation(const SkRect& r, const SkMatrix& matrix); 300 SkPDFDict* createLinkAnnotation(const SkRect& r, const SkMatrix& matrix);
303 void handleLinkToURL(SkData* urlData, const SkRect& r, 301 void handleLinkToURL(SkData* urlData, const SkRect& r,
304 const SkMatrix& matrix); 302 const SkMatrix& matrix);
305 void handleLinkToNamedDest(SkData* nameData, const SkRect& r, 303 void handleLinkToNamedDest(SkData* nameData, const SkRect& r,
306 const SkMatrix& matrix); 304 const SkMatrix& matrix);
307 void defineNamedDestination(SkData* nameData, const SkPoint& point, 305 void defineNamedDestination(SkData* nameData, const SkPoint& point,
308 const SkMatrix& matrix); 306 const SkMatrix& matrix);
309 307
310 typedef SkBaseDevice INHERITED; 308 typedef SkBaseDevice INHERITED;
311 309
312 // 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
313 // an SkPDFDevice 311 // an SkPDFDevice
314 //friend class SkDocument_PDF; 312 //friend class SkDocument_PDF;
315 //friend class SkPDFImageShader; 313 //friend class SkPDFImageShader;
316 }; 314 };
317 315
318 #endif 316 #endif
OLDNEW
« no previous file with comments | « include/config/SkUserConfig.h ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698