Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: src/utils/debugger/SkDebugCanvas.h

Issue 19289003: Const-ify SkDebugCanvas::getSize(). (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698