| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 const SkIRect& getCurrentClip() { | 63 const SkIRect& getCurrentClip() { |
| 64 return fClip; | 64 return fClip; |
| 65 } | 65 } |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 Returns the index of the last draw command to write to the pixel at (x,y
) | 68 Returns the index of the last draw command to write to the pixel at (x,y
) |
| 69 */ | 69 */ |
| 70 int getCommandAtPoint(int x, int y, int index); | 70 int getCommandAtPoint(int x, int y, int index); |
| 71 | 71 |
| 72 /** | 72 /** |
| 73 Removes the command at the specified index |
| 74 @param index The index of the command to delete |
| 75 */ |
| 76 void deleteDrawCommandAt(int index); |
| 77 |
| 78 /** |
| 73 Returns the draw command at the given index. | 79 Returns the draw command at the given index. |
| 74 @param index The index of the command | 80 @param index The index of the command |
| 75 */ | 81 */ |
| 76 SkDrawCommand* getDrawCommandAt(int index); | 82 SkDrawCommand* getDrawCommandAt(int index); |
| 77 | 83 |
| 78 /** | 84 /** |
| 85 Sets the draw command for a given index. |
| 86 @param index The index to overwrite |
| 87 @param command The new command |
| 88 */ |
| 89 void setDrawCommandAt(int index, SkDrawCommand* command); |
| 90 |
| 91 /** |
| 79 Returns information about the command at the given index. | 92 Returns information about the command at the given index. |
| 80 @param index The index of the command | 93 @param index The index of the command |
| 81 */ | 94 */ |
| 82 SkTDArray<SkString*>* getCommandInfo(int index); | 95 SkTDArray<SkString*>* getCommandInfo(int index); |
| 83 | 96 |
| 84 /** | 97 /** |
| 85 Returns the visibility of the command at the given index. | 98 Returns the visibility of the command at the given index. |
| 86 @param index The index of the command | 99 @param index The index of the command |
| 87 */ | 100 */ |
| 88 bool getDrawCommandVisibilityAt(int index); | 101 bool getDrawCommandVisibilityAt(int index); |
| 89 | 102 |
| 90 /** | 103 /** |
| 91 Returns the vector of draw commands | 104 Returns the vector of draw commands |
| 105 DEPRECATED: please use getDrawCommandAt and getSize instead |
| 92 */ | 106 */ |
| 93 const SkTDArray<SkDrawCommand*>& getDrawCommands() const; | 107 const SkTDArray<SkDrawCommand*>& getDrawCommands() const; |
| 94 | 108 |
| 95 /** | 109 /** |
| 96 Returns the vector of draw commands. Do not use this entry | 110 Returns the vector of draw commands. Do not use this entry |
| 97 point - it is going away! | 111 point - it is going away! |
| 98 */ | 112 */ |
| 99 SkTDArray<SkDrawCommand*>& getDrawCommands(); | 113 SkTDArray<SkDrawCommand*>& getDrawCommands(); |
| 100 | 114 |
| 101 /** | 115 /** |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 /** | 258 /** |
| 245 Applies any panning and zooming the user has specified before | 259 Applies any panning and zooming the user has specified before |
| 246 drawing anything else into the canvas. | 260 drawing anything else into the canvas. |
| 247 */ | 261 */ |
| 248 void applyUserTransform(SkCanvas* canvas); | 262 void applyUserTransform(SkCanvas* canvas); |
| 249 | 263 |
| 250 typedef SkCanvas INHERITED; | 264 typedef SkCanvas INHERITED; |
| 251 }; | 265 }; |
| 252 | 266 |
| 253 #endif | 267 #endif |
| OLD | NEW |