| 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 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 182 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
| 183 | 183 |
| 184 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 184 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
| 185 | 185 |
| 186 virtual void endCommentGroup() SK_OVERRIDE; | 186 virtual void endCommentGroup() SK_OVERRIDE; |
| 187 | 187 |
| 188 virtual void drawOval(const SkRect& oval, const SkPaint&) SK_OVERRIDE; | 188 virtual void drawOval(const SkRect& oval, const SkPaint&) SK_OVERRIDE; |
| 189 | 189 |
| 190 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; | 190 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; |
| 191 | 191 |
| 192 virtual void drawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; |
| 193 |
| 192 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; | 194 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; |
| 193 | 195 |
| 194 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], | 196 virtual void drawPoints(PointMode, size_t count, const SkPoint pts[], |
| 195 const SkPaint&) SK_OVERRIDE; | 197 const SkPaint&) SK_OVERRIDE; |
| 196 | 198 |
| 197 virtual void drawPosText(const void* text, size_t byteLength, | 199 virtual void drawPosText(const void* text, size_t byteLength, |
| 198 const SkPoint pos[], const SkPaint&) SK_OVERRIDE; | 200 const SkPoint pos[], const SkPaint&) SK_OVERRIDE; |
| 199 | 201 |
| 200 virtual void drawPosTextH(const void* text, size_t byteLength, | 202 virtual void drawPosTextH(const void* text, size_t byteLength, |
| 201 const SkScalar xpos[], SkScalar constY, | 203 const SkScalar xpos[], SkScalar constY, |
| 202 const SkPaint&) SK_OVERRIDE; | 204 const SkPaint&) SK_OVERRIDE; |
| 203 | 205 |
| 206 virtual void drawRect(const SkRect& rect, const SkPaint&) SK_OVERRIDE; |
| 207 |
| 204 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRI
DE; | 208 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRI
DE; |
| 205 | 209 |
| 206 virtual void drawSprite(const SkBitmap&, int left, int top, | 210 virtual void drawSprite(const SkBitmap&, int left, int top, |
| 207 const SkPaint*) SK_OVERRIDE; | 211 const SkPaint*) SK_OVERRIDE; |
| 208 | 212 |
| 209 virtual void drawText(const void* text, size_t byteLength, SkScalar x, | 213 virtual void drawText(const void* text, size_t byteLength, SkScalar x, |
| 210 SkScalar y, const SkPaint&) SK_OVERRIDE; | 214 SkScalar y, const SkPaint&) SK_OVERRIDE; |
| 211 | 215 |
| 212 virtual void drawTextOnPath(const void* text, size_t byteLength, | 216 virtual void drawTextOnPath(const void* text, size_t byteLength, |
| 213 const SkPath& path, const SkMatrix* matrix, | 217 const SkPath& path, const SkMatrix* matrix, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 231 | 235 |
| 232 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; | 236 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; |
| 233 | 237 |
| 234 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 238 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
| 235 | 239 |
| 236 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; | 240 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; |
| 237 | 241 |
| 238 static const int kVizImageHeight = 256; | 242 static const int kVizImageHeight = 256; |
| 239 static const int kVizImageWidth = 256; | 243 static const int kVizImageWidth = 256; |
| 240 | 244 |
| 241 protected: | |
| 242 virtual void onDrawRect(const SkRect& rect, const SkPaint&) SK_OVERRIDE; | |
| 243 | |
| 244 virtual void onDrawPath(const SkPath& path, const SkPaint&) SK_OVERRIDE; | |
| 245 | |
| 246 private: | 245 private: |
| 247 SkTDArray<SkDrawCommand*> fCommandVector; | 246 SkTDArray<SkDrawCommand*> fCommandVector; |
| 248 int fHeight; | 247 int fHeight; |
| 249 int fWidth; | 248 int fWidth; |
| 250 SkBitmap fBm; | 249 SkBitmap fBm; |
| 251 bool fFilter; | 250 bool fFilter; |
| 252 int fIndex; | 251 int fIndex; |
| 253 SkMatrix fUserMatrix; | 252 SkMatrix fUserMatrix; |
| 254 SkMatrix fMatrix; | 253 SkMatrix fMatrix; |
| 255 SkIRect fClip; | 254 SkIRect fClip; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 277 /** | 276 /** |
| 278 Applies any panning and zooming the user has specified before | 277 Applies any panning and zooming the user has specified before |
| 279 drawing anything else into the canvas. | 278 drawing anything else into the canvas. |
| 280 */ | 279 */ |
| 281 void applyUserTransform(SkCanvas* canvas); | 280 void applyUserTransform(SkCanvas* canvas); |
| 282 | 281 |
| 283 typedef SkCanvas INHERITED; | 282 typedef SkCanvas INHERITED; |
| 284 }; | 283 }; |
| 285 | 284 |
| 286 #endif | 285 #endif |
| OLD | NEW |