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

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: ..nacl 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
« no previous file with comments | « platform_tools/nacl/src/nacl_debugger.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | 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 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
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
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
OLDNEW
« no previous file with comments | « platform_tools/nacl/src/nacl_debugger.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698