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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void drawPaint(const SkDraw&, const SkPaint& paint) override; | 86 void drawPaint(const SkDraw&, const SkPaint& paint) override; |
87 void drawPoints(const SkDraw&, SkCanvas::PointMode mode, | 87 void drawPoints(const SkDraw&, SkCanvas::PointMode mode, |
88 size_t count, const SkPoint[], | 88 size_t count, const SkPoint[], |
89 const SkPaint& paint) override; | 89 const SkPaint& paint) override; |
90 void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint) override
; | 90 void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint) override
; |
91 void drawOval(const SkDraw&, const SkRect& oval, const SkPaint& paint) overr
ide; | 91 void drawOval(const SkDraw&, const SkRect& oval, const SkPaint& paint) overr
ide; |
92 void drawRRect(const SkDraw&, const SkRRect& rr, const SkPaint& paint) overr
ide; | 92 void drawRRect(const SkDraw&, const SkRRect& rr, const SkPaint& paint) overr
ide; |
93 void drawPath(const SkDraw&, const SkPath& origpath, | 93 void drawPath(const SkDraw&, const SkPath& origpath, |
94 const SkPaint& paint, const SkMatrix* prePathMatrix, | 94 const SkPaint& paint, const SkMatrix* prePathMatrix, |
95 bool pathIsMutable) override; | 95 bool pathIsMutable) override; |
96 void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, | 96 void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, const SkRect
* src, |
97 const SkRect* src, const SkRect& dst, | 97 const SkRect& dst, const SkPaint&, SkCanvas::SrcRectCons
traint) override; |
98 const SkPaint& paint, | |
99 SK_VIRTUAL_CONSTRAINT_TYPE) override; | |
100 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, | 98 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, |
101 const SkMatrix& matrix, const SkPaint&) override; | 99 const SkMatrix& matrix, const SkPaint&) override; |
102 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, | 100 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, |
103 const SkPaint& paint) override; | 101 const SkPaint& paint) override; |
104 void drawText(const SkDraw&, const void* text, size_t len, | 102 void drawText(const SkDraw&, const void* text, size_t len, |
105 SkScalar x, SkScalar y, const SkPaint&) override; | 103 SkScalar x, SkScalar y, const SkPaint&) override; |
106 void drawPosText(const SkDraw&, const void* text, size_t len, | 104 void drawPosText(const SkDraw&, const void* text, size_t len, |
107 const SkScalar pos[], int scalarsPerPos, | 105 const SkScalar pos[], int scalarsPerPos, |
108 const SkPoint& offset, const SkPaint&) override; | 106 const SkPoint& offset, const SkPaint&) override; |
109 void drawVertices(const SkDraw&, SkCanvas::VertexMode, | 107 void drawVertices(const SkDraw&, SkCanvas::VertexMode, |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 296 |
299 typedef SkBaseDevice INHERITED; | 297 typedef SkBaseDevice INHERITED; |
300 | 298 |
301 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 299 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
302 // an SkPDFDevice | 300 // an SkPDFDevice |
303 //friend class SkDocument_PDF; | 301 //friend class SkDocument_PDF; |
304 //friend class SkPDFImageShader; | 302 //friend class SkPDFImageShader; |
305 }; | 303 }; |
306 | 304 |
307 #endif | 305 #endif |
OLD | NEW |