OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 | 9 |
10 #ifndef SKDEBUGCANVAS_H_ | 10 #ifndef SKDEBUGCANVAS_H_ |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 183 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
184 | 184 |
185 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; | 185 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; |
186 | 186 |
187 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; | 187 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; |
188 | 188 |
189 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], | 189 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], |
190 const SkPaint&) SK_OVERRIDE; | 190 const SkPaint&) SK_OVERRIDE; |
191 | 191 |
192 virtual void drawPosText(const void* text, size_t byteLength, | |
193 const SkPoint pos[], const SkPaint&) SK_OVERRIDE; | |
194 | |
195 virtual void drawPosTextH(const void* text, size_t byteLength, | |
196 const SkScalar xpos[], SkScalar constY, | |
197 const SkPaint&) SK_OVERRIDE; | |
198 | |
199 virtual void drawRect(const SkRect& rect, const SkPaint&) SK_OVERRIDE; | 192 virtual void drawRect(const SkRect& rect, const SkPaint&) SK_OVERRIDE; |
200 | 193 |
201 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRI
DE; | 194 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRI
DE; |
202 | 195 |
203 virtual void drawSprite(const SkBitmap&, int left, int top, | 196 virtual void drawSprite(const SkBitmap&, int left, int top, |
204 const SkPaint*) SK_OVERRIDE; | 197 const SkPaint*) SK_OVERRIDE; |
205 | 198 |
206 virtual void drawText(const void* text, size_t byteLength, SkScalar x, | |
207 SkScalar y, const SkPaint&) SK_OVERRIDE; | |
208 | |
209 virtual void drawTextOnPath(const void* text, size_t byteLength, | |
210 const SkPath& path, const SkMatrix* matrix, | |
211 const SkPaint&) SK_OVERRIDE; | |
212 | |
213 virtual void drawVertices(VertexMode, int vertexCount, | 199 virtual void drawVertices(VertexMode, int vertexCount, |
214 const SkPoint vertices[], const SkPoint texs[], | 200 const SkPoint vertices[], const SkPoint texs[], |
215 const SkColor colors[], SkXfermode*, | 201 const SkColor colors[], SkXfermode*, |
216 const uint16_t indices[], int indexCount, | 202 const uint16_t indices[], int indexCount, |
217 const SkPaint&) SK_OVERRIDE; | 203 const SkPaint&) SK_OVERRIDE; |
218 | 204 |
219 static const int kVizImageHeight = 256; | 205 static const int kVizImageHeight = 256; |
220 static const int kVizImageWidth = 256; | 206 static const int kVizImageWidth = 256; |
221 | 207 |
222 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } | 208 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } |
(...skipping 20 matching lines...) Expand all Loading... |
243 | 229 |
244 protected: | 230 protected: |
245 virtual void willSave(SaveFlags) SK_OVERRIDE; | 231 virtual void willSave(SaveFlags) SK_OVERRIDE; |
246 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 232 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
247 virtual void willRestore() SK_OVERRIDE; | 233 virtual void willRestore() SK_OVERRIDE; |
248 | 234 |
249 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 235 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
250 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 236 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
251 | 237 |
252 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 238 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
| 239 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
| 240 const SkPaint&) SK_OVERRIDE; |
| 241 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
| 242 const SkPaint&) SK_OVERRIDE; |
| 243 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
| 244 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
| 245 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
| 246 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
253 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | 247 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; |
254 virtual void onPopCull() SK_OVERRIDE; | 248 virtual void onPopCull() SK_OVERRIDE; |
255 | 249 |
256 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 250 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
257 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 251 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
258 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 252 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
259 virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; | 253 virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; |
260 | 254 |
261 void markActiveCommands(int index); | 255 void markActiveCommands(int index); |
262 | 256 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 if (NULL != fPicture) { | 308 if (NULL != fPicture) { |
315 return fPicture->EXPERIMENTAL_curOpID(); | 309 return fPicture->EXPERIMENTAL_curOpID(); |
316 } | 310 } |
317 return 0; | 311 return 0; |
318 } | 312 } |
319 | 313 |
320 typedef SkCanvas INHERITED; | 314 typedef SkCanvas INHERITED; |
321 }; | 315 }; |
322 | 316 |
323 #endif | 317 #endif |
OLD | NEW |