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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, |
97 const SkRect* src, const SkRect& dst, | 97 const SkRect* src, const SkRect& dst, |
98 const SkPaint& paint, | 98 const SkPaint& paint, |
99 SkCanvas::DrawBitmapRectFlags flags) override; | 99 SK_VIRTUAL_CONSTRAINT_TYPE) override; |
100 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, | 100 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, |
101 const SkMatrix& matrix, const SkPaint&) override; | 101 const SkMatrix& matrix, const SkPaint&) override; |
102 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, | 102 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, |
103 const SkPaint& paint) override; | 103 const SkPaint& paint) override; |
104 void drawText(const SkDraw&, const void* text, size_t len, | 104 void drawText(const SkDraw&, const void* text, size_t len, |
105 SkScalar x, SkScalar y, const SkPaint&) override; | 105 SkScalar x, SkScalar y, const SkPaint&) override; |
106 void drawPosText(const SkDraw&, const void* text, size_t len, | 106 void drawPosText(const SkDraw&, const void* text, size_t len, |
107 const SkScalar pos[], int scalarsPerPos, | 107 const SkScalar pos[], int scalarsPerPos, |
108 const SkPoint& offset, const SkPaint&) override; | 108 const SkPoint& offset, const SkPaint&) override; |
109 void drawVertices(const SkDraw&, SkCanvas::VertexMode, | 109 void drawVertices(const SkDraw&, SkCanvas::VertexMode, |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 typedef SkBaseDevice INHERITED; | 307 typedef SkBaseDevice INHERITED; |
308 | 308 |
309 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 309 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
310 // an SkPDFDevice | 310 // an SkPDFDevice |
311 //friend class SkDocument_PDF; | 311 //friend class SkDocument_PDF; |
312 //friend class SkPDFImageShader; | 312 //friend class SkPDFImageShader; |
313 }; | 313 }; |
314 | 314 |
315 #endif | 315 #endif |
OLD | NEW |