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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 virtual void drawTextOnPath(const void* text, size_t byteLength, | 199 virtual void drawTextOnPath(const void* text, size_t byteLength, |
200 const SkPath& path, const SkMatrix* matrix, | 200 const SkPath& path, const SkMatrix* matrix, |
201 const SkPaint&) SK_OVERRIDE; | 201 const SkPaint&) SK_OVERRIDE; |
202 | 202 |
203 virtual void drawVertices(VertexMode, int vertexCount, | 203 virtual void drawVertices(VertexMode, int vertexCount, |
204 const SkPoint vertices[], const SkPoint texs[], | 204 const SkPoint vertices[], const SkPoint texs[], |
205 const SkColor colors[], SkXfermode*, | 205 const SkColor colors[], SkXfermode*, |
206 const uint16_t indices[], int indexCount, | 206 const uint16_t indices[], int indexCount, |
207 const SkPaint&) SK_OVERRIDE; | 207 const SkPaint&) SK_OVERRIDE; |
208 | 208 |
| 209 virtual void restore() SK_OVERRIDE; |
| 210 |
209 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; | 211 virtual bool rotate(SkScalar degrees) SK_OVERRIDE; |
210 | 212 |
| 213 virtual int save(SaveFlags) SK_OVERRIDE; |
| 214 |
| 215 virtual int saveLayer(const SkRect* bounds, const SkPaint*, SaveFlags) SK_OV
ERRIDE; |
| 216 |
211 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 217 virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
212 | 218 |
213 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; | 219 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; |
214 | 220 |
215 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 221 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
216 | 222 |
217 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; | 223 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; |
218 | 224 |
219 static const int kVizImageHeight = 256; | 225 static const int kVizImageHeight = 256; |
220 static const int kVizImageWidth = 256; | 226 static const int kVizImageWidth = 256; |
(...skipping 14 matching lines...) Expand all Loading... |
235 return true; | 241 return true; |
236 } | 242 } |
237 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { | 243 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { |
238 if (NULL != bounds) { | 244 if (NULL != bounds) { |
239 bounds->setLargest(); | 245 bounds->setLargest(); |
240 } | 246 } |
241 return true; | 247 return true; |
242 } | 248 } |
243 | 249 |
244 protected: | 250 protected: |
245 virtual void onSave(SaveFlags) SK_OVERRIDE; | |
246 virtual bool onSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK_OVERRI
DE; | |
247 virtual void onRestore() SK_OVERRIDE; | |
248 | |
249 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 251 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
250 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | 252 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE; |
251 virtual void onPopCull() SK_OVERRIDE; | 253 virtual void onPopCull() SK_OVERRIDE; |
252 | 254 |
253 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 255 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
254 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 256 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
255 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 257 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
256 virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; | 258 virtual void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; |
257 | 259 |
258 void markActiveCommands(int index); | 260 void markActiveCommands(int index); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 /** | 305 /** |
304 Applies any panning and zooming the user has specified before | 306 Applies any panning and zooming the user has specified before |
305 drawing anything else into the canvas. | 307 drawing anything else into the canvas. |
306 */ | 308 */ |
307 void applyUserTransform(SkCanvas* canvas); | 309 void applyUserTransform(SkCanvas* canvas); |
308 | 310 |
309 typedef SkCanvas INHERITED; | 311 typedef SkCanvas INHERITED; |
310 }; | 312 }; |
311 | 313 |
312 #endif | 314 #endif |
OLD | NEW |