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 int save(SaveFlags) SK_OVERRIDE; | |
78 virtual int saveLayer(const SkRect* bounds, const SkPaint* paint, | |
79 SaveFlags) SK_OVERRIDE; | |
80 virtual void restore() SK_OVERRIDE; | |
81 | |
82 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; | 77 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; |
83 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 78 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
84 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; | 79 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; |
85 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 80 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
86 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; | 81 virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; |
87 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; | 82 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; |
88 | 83 |
89 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 84 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
90 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 85 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
91 const SkPaint& paint) SK_OVERRIDE; | 86 const SkPaint& paint) SK_OVERRIDE; |
(...skipping 25 matching lines...) Expand all Loading... |
117 const SkPoint vertices[], const SkPoint texs[], | 112 const SkPoint vertices[], const SkPoint texs[], |
118 const SkColor colors[], SkXfermode* xmode, | 113 const SkColor colors[], SkXfermode* xmode, |
119 const uint16_t indices[], int indexCount, | 114 const uint16_t indices[], int indexCount, |
120 const SkPaint& paint) SK_OVERRIDE; | 115 const SkPaint& paint) SK_OVERRIDE; |
121 virtual void drawData(const void*, size_t) SK_OVERRIDE; | 116 virtual void drawData(const void*, size_t) SK_OVERRIDE; |
122 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 117 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
123 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 118 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
124 virtual void endCommentGroup() SK_OVERRIDE; | 119 virtual void endCommentGroup() SK_OVERRIDE; |
125 | 120 |
126 protected: | 121 protected: |
| 122 virtual void onSave(SaveFlags) SK_OVERRIDE; |
| 123 virtual bool onSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK_OVERRI
DE; |
| 124 virtual void onRestore() SK_OVERRIDE; |
| 125 |
127 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 126 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
128 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | 127 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; |
129 virtual void onPopCull() SK_OVERRIDE; | 128 virtual void onPopCull() SK_OVERRIDE; |
130 | 129 |
131 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 130 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
132 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 131 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
133 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 132 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
134 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 133 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
135 | 134 |
136 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... |
169 public: | 168 public: |
170 SkDebugfDumper(); | 169 SkDebugfDumper(); |
171 | 170 |
172 private: | 171 private: |
173 typedef SkFormatDumper INHERITED; | 172 typedef SkFormatDumper INHERITED; |
174 }; | 173 }; |
175 | 174 |
176 #endif | 175 #endif |
177 | 176 |
178 #endif | 177 #endif |
OLD | NEW |