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