| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 SK_ATTR_DEPRECATED("please use getDrawCommandAt and getSize instead") | 116 SK_ATTR_DEPRECATED("please use getDrawCommandAt and getSize instead") |
| 117 const SkTDArray<SkDrawCommand*>& getDrawCommands() const; | 117 const SkTDArray<SkDrawCommand*>& getDrawCommands() const; |
| 118 | 118 |
| 119 /** | 119 /** |
| 120 Returns the vector of draw commands. Do not use this entry | 120 Returns the vector of draw commands. Do not use this entry |
| 121 point - it is going away! | 121 point - it is going away! |
| 122 */ | 122 */ |
| 123 SkTDArray<SkDrawCommand*>& getDrawCommands(); | 123 SkTDArray<SkDrawCommand*>& getDrawCommands(); |
| 124 | 124 |
| 125 /** | 125 /** |
| 126 * Returns the string vector of draw commands | |
| 127 */ | |
| 128 SkTArray<SkString>* getDrawCommandsAsStrings() const; | |
| 129 | |
| 130 /** | |
| 131 * Returns an array containing an offset (in the SkPicture) for each command | |
| 132 */ | |
| 133 SkTDArray<size_t>* getDrawCommandOffsets() const; | |
| 134 | |
| 135 /** | |
| 136 Returns length of draw command vector. | 126 Returns length of draw command vector. |
| 137 */ | 127 */ |
| 138 int getSize() const { | 128 int getSize() const { |
| 139 return fCommandVector.count(); | 129 return fCommandVector.count(); |
| 140 } | 130 } |
| 141 | 131 |
| 142 /** | 132 /** |
| 143 Toggles the visibility / execution of the draw command at index i with | 133 Toggles the visibility / execution of the draw command at index i with |
| 144 the value of toggle. | 134 the value of toggle. |
| 145 */ | 135 */ |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 bool lastClipStackData(const SkPath& devPath); | 301 bool lastClipStackData(const SkPath& devPath); |
| 312 void outputConicPoints(const SkPoint* pts, SkScalar weight); | 302 void outputConicPoints(const SkPoint* pts, SkScalar weight); |
| 313 void outputPoints(const SkPoint* pts, int count); | 303 void outputPoints(const SkPoint* pts, int count); |
| 314 void outputPointsCommon(const SkPoint* pts, int count); | 304 void outputPointsCommon(const SkPoint* pts, int count); |
| 315 void outputScalar(SkScalar num); | 305 void outputScalar(SkScalar num); |
| 316 | 306 |
| 317 typedef SkCanvas INHERITED; | 307 typedef SkCanvas INHERITED; |
| 318 }; | 308 }; |
| 319 | 309 |
| 320 #endif | 310 #endif |
| OLD | NEW |