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 15 matching lines...) Expand all Loading... |
26 virtual int save(SaveFlags) SK_OVERRIDE; | 26 virtual int save(SaveFlags) SK_OVERRIDE; |
27 virtual int saveLayer(const SkRect* bounds, const SkPaint*, | 27 virtual int saveLayer(const SkRect* bounds, const SkPaint*, |
28 SaveFlags) SK_OVERRIDE; | 28 SaveFlags) SK_OVERRIDE; |
29 virtual void restore() SK_OVERRIDE; | 29 virtual void restore() SK_OVERRIDE; |
30 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; | 30 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; |
31 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 31 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
32 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; | 32 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; |
33 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 33 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
34 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; | 34 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; |
35 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; | 35 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; |
36 virtual bool clipRect(const SkRect&, 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; | |
39 virtual bool clipRegion(const SkRegion& deviceRgn, | |
40 SkRegion::Op) SK_OVERRIDE; | |
41 virtual void clear(SkColor) SK_OVERRIDE; | 36 virtual void clear(SkColor) SK_OVERRIDE; |
42 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 37 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
43 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 38 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
44 const SkPaint&) SK_OVERRIDE; | 39 const SkPaint&) SK_OVERRIDE; |
45 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; | 40 virtual void drawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; |
46 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; | 41 virtual void drawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; |
47 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; | 42 virtual void drawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; |
48 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; | 43 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; |
49 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 44 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
50 const SkPaint*) SK_OVERRIDE; | 45 const SkPaint*) SK_OVERRIDE; |
(...skipping 30 matching lines...) Expand all Loading... |
81 | 76 |
82 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 77 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
83 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 78 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
84 virtual void endCommentGroup() SK_OVERRIDE; | 79 virtual void endCommentGroup() SK_OVERRIDE; |
85 | 80 |
86 protected: | 81 protected: |
87 SkTDArray<SkCanvas*> fList; | 82 SkTDArray<SkCanvas*> fList; |
88 | 83 |
89 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 84 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
90 | 85 |
| 86 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 87 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
| 88 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 89 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
| 90 |
91 class Iter; | 91 class Iter; |
92 | 92 |
93 private: | 93 private: |
94 typedef SkCanvas INHERITED; | 94 typedef SkCanvas INHERITED; |
95 }; | 95 }; |
96 | 96 |
97 | 97 |
98 #endif | 98 #endif |
OLD | NEW |