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 15 matching lines...) Expand all Loading... |
26 class SkPDFDevice; | 26 class SkPDFDevice; |
27 class SkPDFDict; | 27 class SkPDFDict; |
28 class SkPDFFont; | 28 class SkPDFFont; |
29 class SkPDFFormXObject; | 29 class SkPDFFormXObject; |
30 class SkPDFGlyphSetMap; | 30 class SkPDFGlyphSetMap; |
31 class SkPDFGraphicState; | 31 class SkPDFGraphicState; |
32 class SkPDFObject; | 32 class SkPDFObject; |
33 class SkPDFResourceDict; | 33 class SkPDFResourceDict; |
34 class SkPDFShader; | 34 class SkPDFShader; |
35 class SkPDFStream; | 35 class SkPDFStream; |
| 36 class SkRRect; |
36 template <typename T> class SkTSet; | 37 template <typename T> class SkTSet; |
37 | 38 |
38 // Private classes. | 39 // Private classes. |
39 struct ContentEntry; | 40 struct ContentEntry; |
40 struct GraphicStateEntry; | 41 struct GraphicStateEntry; |
41 struct NamedDestination; | 42 struct NamedDestination; |
42 | 43 |
43 /** \class SkPDFDevice | 44 /** \class SkPDFDevice |
44 | 45 |
45 The drawing context for the PDF backend. | 46 The drawing context for the PDF backend. |
(...skipping 30 matching lines...) Expand all Loading... |
76 /** These are called inside the per-device-layer loop for each draw call. | 77 /** These are called inside the per-device-layer loop for each draw call. |
77 When these are called, we have already applied any saveLayer operations, | 78 When these are called, we have already applied any saveLayer operations, |
78 and are handling any looping from the paint, and any effects from the | 79 and are handling any looping from the paint, and any effects from the |
79 DrawFilter. | 80 DrawFilter. |
80 */ | 81 */ |
81 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; | 82 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; |
82 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, | 83 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, |
83 size_t count, const SkPoint[], | 84 size_t count, const SkPoint[], |
84 const SkPaint& paint) SK_OVERRIDE; | 85 const SkPaint& paint) SK_OVERRIDE; |
85 virtual void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint); | 86 virtual void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint); |
| 87 virtual void drawRRect(const SkDraw&, const SkRRect& rr, |
| 88 const SkPaint& paint) SK_OVERRIDE; |
86 virtual void drawPath(const SkDraw&, const SkPath& origpath, | 89 virtual void drawPath(const SkDraw&, const SkPath& origpath, |
87 const SkPaint& paint, const SkMatrix* prePathMatrix, | 90 const SkPaint& paint, const SkMatrix* prePathMatrix, |
88 bool pathIsMutable) SK_OVERRIDE; | 91 bool pathIsMutable) SK_OVERRIDE; |
89 virtual void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, | 92 virtual void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, |
90 const SkRect* src, const SkRect& dst, | 93 const SkRect* src, const SkRect& dst, |
91 const SkPaint& paint, | 94 const SkPaint& paint, |
92 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE
; | 95 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE
; |
93 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, | 96 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, |
94 const SkMatrix& matrix, const SkPaint&) SK_OVERRIDE; | 97 const SkMatrix& matrix, const SkPaint&) SK_OVERRIDE; |
95 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, | 98 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 331 |
329 typedef SkBitmapDevice INHERITED; | 332 typedef SkBitmapDevice INHERITED; |
330 | 333 |
331 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 334 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
332 // an SkPDFDevice | 335 // an SkPDFDevice |
333 //friend class SkDocument_PDF; | 336 //friend class SkDocument_PDF; |
334 //friend class SkPDFImageShader; | 337 //friend class SkPDFImageShader; |
335 }; | 338 }; |
336 | 339 |
337 #endif | 340 #endif |
OLD | NEW |