OLD | NEW |
1 #ifndef EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ | 1 #ifndef EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ |
2 #define EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ | 2 #define EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ |
3 | 3 |
4 #include "SkCanvas.h" | 4 #include "SkCanvas.h" |
5 | 5 |
6 class SK_API SkNulCanvas : public SkCanvas { | 6 class SK_API SkNulCanvas : public SkCanvas { |
7 public: | 7 public: |
8 SK_DECLARE_INST_COUNT(SkNulCanvas); | 8 SK_DECLARE_INST_COUNT(SkNulCanvas); |
9 | 9 |
10 SkNulCanvas() {} | 10 SkNulCanvas() {} |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 43 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
44 const SkPaint& paint) {} | 44 const SkPaint& paint) {} |
45 virtual void drawRect(const SkRect& rect, const SkPaint& paint) {} | 45 virtual void drawRect(const SkRect& rect, const SkPaint& paint) {} |
46 virtual void drawOval(const SkRect& oval, const SkPaint&) {} | 46 virtual void drawOval(const SkRect& oval, const SkPaint&) {} |
47 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) {} | 47 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) {} |
48 virtual void drawPath(const SkPath& path, const SkPaint& paint) {} | 48 virtual void drawPath(const SkPath& path, const SkPaint& paint) {} |
49 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 49 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
50 const SkPaint* paint = NULL) {} | 50 const SkPaint* paint = NULL) {} |
51 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 51 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
52 const SkRect& dst, | 52 const SkRect& dst, |
53 const SkPaint* paint) {} | 53 const SkPaint* paint, |
| 54 DrawBitmapRectFlags flags) {} |
54 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 55 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
55 const SkPaint* paint = NULL) {} | 56 const SkPaint* paint = NULL) {} |
56 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 57 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
57 const SkRect& dst, const SkPaint* paint = NULL)
{} | 58 const SkRect& dst, const SkPaint* paint = NULL)
{} |
58 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 59 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
59 const SkPaint* paint = NULL) {} | 60 const SkPaint* paint = NULL) {} |
60 virtual void drawText(const void* text, size_t byteLength, SkScalar x, | 61 virtual void drawText(const void* text, size_t byteLength, SkScalar x, |
61 SkScalar y, const SkPaint& paint) {} | 62 SkScalar y, const SkPaint& paint) {} |
62 virtual void drawPosText(const void* text, size_t byteLength, | 63 virtual void drawPosText(const void* text, size_t byteLength, |
63 const SkPoint pos[], const SkPaint& paint) {} | 64 const SkPoint pos[], const SkPaint& paint) {} |
(...skipping 18 matching lines...) Expand all Loading... |
82 | 83 |
83 protected: | 84 protected: |
84 virtual SkCanvas* canvasForDrawIter() {return NULL;} | 85 virtual SkCanvas* canvasForDrawIter() {return NULL;} |
85 virtual SkDevice* setDevice(SkDevice* device) {return NULL;} | 86 virtual SkDevice* setDevice(SkDevice* device) {return NULL;} |
86 | 87 |
87 private: | 88 private: |
88 typedef SkCanvas INHERITED; | 89 typedef SkCanvas INHERITED; |
89 }; | 90 }; |
90 | 91 |
91 #endif // EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ | 92 #endif // EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ |
OLD | NEW |