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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 SkTDArray<SkDrawCommand*>& getDrawCommands(); | 113 SkTDArray<SkDrawCommand*>& getDrawCommands(); |
114 | 114 |
115 /** | 115 /** |
116 * Returns the string vector of draw commands | 116 * Returns the string vector of draw commands |
117 */ | 117 */ |
118 SkTArray<SkString>* getDrawCommandsAsStrings() const; | 118 SkTArray<SkString>* getDrawCommandsAsStrings() const; |
119 | 119 |
120 /** | 120 /** |
121 Returns length of draw command vector. | 121 Returns length of draw command vector. |
122 */ | 122 */ |
123 int getSize() { | 123 int getSize() const { |
124 return fCommandVector.count(); | 124 return fCommandVector.count(); |
125 } | 125 } |
126 | 126 |
127 /** | 127 /** |
128 Toggles the visibility / execution of the draw command at index i with | 128 Toggles the visibility / execution of the draw command at index i with |
129 the value of toggle. | 129 the value of toggle. |
130 */ | 130 */ |
131 void toggleCommand(int index, bool toggle); | 131 void toggleCommand(int index, bool toggle); |
132 | 132 |
133 void setBounds(int width, int height) { | 133 void setBounds(int width, int height) { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 /** | 264 /** |
265 Applies any panning and zooming the user has specified before | 265 Applies any panning and zooming the user has specified before |
266 drawing anything else into the canvas. | 266 drawing anything else into the canvas. |
267 */ | 267 */ |
268 void applyUserTransform(SkCanvas* canvas); | 268 void applyUserTransform(SkCanvas* canvas); |
269 | 269 |
270 typedef SkCanvas INHERITED; | 270 typedef SkCanvas INHERITED; |
271 }; | 271 }; |
272 | 272 |
273 #endif | 273 #endif |
OLD | NEW |