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 #ifndef SkNWayCanvas_DEFINED | 9 #ifndef SkNWayCanvas_DEFINED |
10 #define SkNWayCanvas_DEFINED | 10 #define SkNWayCanvas_DEFINED |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; | 36 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; |
37 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; | 37 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; |
38 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; | 38 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; |
39 virtual bool clipRegion(const SkRegion& deviceRgn, | 39 virtual bool clipRegion(const SkRegion& deviceRgn, |
40 SkRegion::Op) SK_OVERRIDE; | 40 SkRegion::Op) SK_OVERRIDE; |
41 | 41 |
42 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 42 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
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&) SK_OVERRIDE; | 44 const SkPaint&) SK_OVERRIDE; |
45 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; | 45 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; |
| 46 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; |
46 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; | 47 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; |
| 48 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; |
47 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 49 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
48 const SkPaint*) SK_OVERRIDE; | 50 const SkPaint*) SK_OVERRIDE; |
49 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 51 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
50 const SkRect& dst, const SkPaint* paint, | 52 const SkRect& dst, const SkPaint* paint, |
51 DrawBitmapRectFlags flags) SK_OVERRIDE; | 53 DrawBitmapRectFlags flags) SK_OVERRIDE; |
52 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 54 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
53 const SkPaint*) SK_OVERRIDE; | 55 const SkPaint*) SK_OVERRIDE; |
54 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 56 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
55 const SkPaint*) SK_OVERRIDE; | 57 const SkPaint*) SK_OVERRIDE; |
56 virtual void drawText(const void* text, size_t byteLength, SkScalar x, | 58 virtual void drawText(const void* text, size_t byteLength, SkScalar x, |
(...skipping 14 matching lines...) Expand all Loading... |
71 const SkPaint&) SK_OVERRIDE; | 73 const SkPaint&) SK_OVERRIDE; |
72 | 74 |
73 virtual SkBounder* setBounder(SkBounder*) SK_OVERRIDE; | 75 virtual SkBounder* setBounder(SkBounder*) SK_OVERRIDE; |
74 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE; | 76 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE; |
75 | 77 |
76 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 78 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
77 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 79 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
78 virtual void endCommentGroup() SK_OVERRIDE; | 80 virtual void endCommentGroup() SK_OVERRIDE; |
79 | 81 |
80 protected: | 82 protected: |
81 virtual void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; | |
82 virtual void onDrawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; | |
83 SkTDArray<SkCanvas*> fList; | 83 SkTDArray<SkCanvas*> fList; |
84 | 84 |
85 class Iter; | 85 class Iter; |
86 | 86 |
87 private: | 87 private: |
88 typedef SkCanvas INHERITED; | 88 typedef SkCanvas INHERITED; |
89 }; | 89 }; |
90 | 90 |
91 | 91 |
92 #endif | 92 #endif |
OLD | NEW |