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

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

Issue 821663003: Change DebugCanvas API to not encourage memory leaks (Closed) Base URL: https://skia.googlesource.com/skia.git@debugger-raster-black-bg
Patch Set: Created 5 years, 12 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 126 * Fills the string vector with draw commands
127 */ 127 */
128 SkTArray<SkString>* getDrawCommandsAsStrings() const; 128 void getDrawCommandsAsStrings(SkTArray<SkString>* outCommandStrings) const;
129 129
130 /** 130 /**
131 * Returns an array containing an offset (in the SkPicture) for each command 131 * Fills the size_t array with an offset (in the SkPicture) for each command
132 */ 132 */
133 SkTDArray<size_t>* getDrawCommandOffsets() const; 133 void getDrawCommandOffsets(SkTDArray<size_t>* outCommandOffsets) const;
134 134
135 /** 135 /**
136 Returns length of draw command vector. 136 Returns length of draw command vector.
137 */ 137 */
138 int getSize() const { 138 int getSize() const {
139 return fCommandVector.count(); 139 return fCommandVector.count();
140 } 140 }
141 141
142 /** 142 /**
143 Toggles the visibility / execution of the draw command at index i with 143 Toggles the visibility / execution of the draw command at index i with
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 bool lastClipStackData(const SkPath& devPath); 311 bool lastClipStackData(const SkPath& devPath);
312 void outputConicPoints(const SkPoint* pts, SkScalar weight); 312 void outputConicPoints(const SkPoint* pts, SkScalar weight);
313 void outputPoints(const SkPoint* pts, int count); 313 void outputPoints(const SkPoint* pts, int count);
314 void outputPointsCommon(const SkPoint* pts, int count); 314 void outputPointsCommon(const SkPoint* pts, int count);
315 void outputScalar(SkScalar num); 315 void outputScalar(SkScalar num);
316 316
317 typedef SkCanvas INHERITED; 317 typedef SkCanvas INHERITED;
318 }; 318 };
319 319
320 #endif 320 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698