| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 /** | 61 /** |
| 62 Executes all draw calls to the canvas. | 62 Executes all draw calls to the canvas. |
| 63 @param canvas The canvas being drawn to | 63 @param canvas The canvas being drawn to |
| 64 */ | 64 */ |
| 65 void draw(SkCanvas* canvas); | 65 void draw(SkCanvas* canvas); |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 Executes the draw calls up to the specified index. | 68 Executes the draw calls up to the specified index. |
| 69 @param canvas The canvas being drawn to | 69 @param canvas The canvas being drawn to |
| 70 @param index The index of the final command being executed | 70 @param index The index of the final command being executed |
| 71 @param m an optional Mth gpu batch to highlight, or -1 |
| 71 */ | 72 */ |
| 72 void drawTo(SkCanvas* canvas, int index); | 73 void drawTo(SkCanvas* canvas, int index, int m = -1); |
| 73 | 74 |
| 74 /** | 75 /** |
| 75 Returns the most recently calculated transformation matrix | 76 Returns the most recently calculated transformation matrix |
| 76 */ | 77 */ |
| 77 const SkMatrix& getCurrentMatrix() { | 78 const SkMatrix& getCurrentMatrix() { |
| 78 return fMatrix; | 79 return fMatrix; |
| 79 } | 80 } |
| 80 | 81 |
| 81 /** | 82 /** |
| 82 Returns the most recently calculated clip | 83 Returns the most recently calculated clip |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 void outputPoints(const SkPoint* pts, int count); | 283 void outputPoints(const SkPoint* pts, int count); |
| 283 void outputPointsCommon(const SkPoint* pts, int count); | 284 void outputPointsCommon(const SkPoint* pts, int count); |
| 284 void outputScalar(SkScalar num); | 285 void outputScalar(SkScalar num); |
| 285 | 286 |
| 286 void updatePaintFilterCanvas(); | 287 void updatePaintFilterCanvas(); |
| 287 | 288 |
| 288 typedef SkCanvas INHERITED; | 289 typedef SkCanvas INHERITED; |
| 289 }; | 290 }; |
| 290 | 291 |
| 291 #endif | 292 #endif |
| OLD | NEW |