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 #ifndef SkDumpCanvas_DEFINED | 8 #ifndef SkDumpCanvas_DEFINED |
9 #define SkDumpCanvas_DEFINED | 9 #define SkDumpCanvas_DEFINED |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 private: | 68 private: |
69 typedef SkRefCnt INHERITED; | 69 typedef SkRefCnt INHERITED; |
70 }; | 70 }; |
71 | 71 |
72 Dumper* getDumper() const { return fDumper; } | 72 Dumper* getDumper() const { return fDumper; } |
73 void setDumper(Dumper*); | 73 void setDumper(Dumper*); |
74 | 74 |
75 int getNestLevel() const { return fNestLevel; } | 75 int getNestLevel() const { return fNestLevel; } |
76 | 76 |
77 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; | |
78 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; | |
79 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; | |
80 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; | |
81 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; | |
82 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; | |
83 | |
84 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 77 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
85 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 78 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
86 const SkPaint& paint) SK_OVERRIDE; | 79 const SkPaint& paint) SK_OVERRIDE; |
87 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 80 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
88 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; | 81 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE; |
89 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; | 82 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; |
90 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; | 83 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE; |
91 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 84 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
92 const SkPaint* paint) SK_OVERRIDE; | 85 const SkPaint* paint) SK_OVERRIDE; |
93 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 86 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
(...skipping 22 matching lines...) Expand all Loading... |
116 virtual void drawData(const void*, size_t) SK_OVERRIDE; | 109 virtual void drawData(const void*, size_t) SK_OVERRIDE; |
117 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 110 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
118 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 111 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
119 virtual void endCommentGroup() SK_OVERRIDE; | 112 virtual void endCommentGroup() SK_OVERRIDE; |
120 | 113 |
121 protected: | 114 protected: |
122 virtual void willSave(SaveFlags) SK_OVERRIDE; | 115 virtual void willSave(SaveFlags) SK_OVERRIDE; |
123 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 116 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
124 virtual void willRestore() SK_OVERRIDE; | 117 virtual void willRestore() SK_OVERRIDE; |
125 | 118 |
| 119 virtual void didTranslate(SkScalar, SkScalar) SK_OVERRIDE; |
| 120 virtual void didScale(SkScalar, SkScalar) SK_OVERRIDE; |
| 121 virtual void didRotate(SkScalar) SK_OVERRIDE; |
| 122 virtual void didSkew(SkScalar, SkScalar) SK_OVERRIDE; |
| 123 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
| 124 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
| 125 |
126 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 126 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
127 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | 127 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; |
128 virtual void onPopCull() SK_OVERRIDE; | 128 virtual void onPopCull() SK_OVERRIDE; |
129 | 129 |
130 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 130 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
131 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 131 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
132 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 132 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
133 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 133 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
134 | 134 |
135 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); | 135 static const char* EdgeStyleToAAString(ClipEdgeStyle edgeStyle); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 public: | 168 public: |
169 SkDebugfDumper(); | 169 SkDebugfDumper(); |
170 | 170 |
171 private: | 171 private: |
172 typedef SkFormatDumper INHERITED; | 172 typedef SkFormatDumper INHERITED; |
173 }; | 173 }; |
174 | 174 |
175 #endif | 175 #endif |
176 | 176 |
177 #endif | 177 #endif |
OLD | NEW |