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

Side by Side Diff: tools/debugger/SkDebugCanvas.h

Issue 1692683002: fixed off-by-one error in skiaserve /cmd (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | tools/skiaserve/skiaserve.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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 */ 134 */
135 void toggleCommand(int index, bool toggle); 135 void toggleCommand(int index, bool toggle);
136 136
137 void setUserMatrix(SkMatrix matrix) { 137 void setUserMatrix(SkMatrix matrix) {
138 fUserMatrix = matrix; 138 fUserMatrix = matrix;
139 } 139 }
140 140
141 SkString clipStackData() const { return fClipStackData; } 141 SkString clipStackData() const { return fClipStackData; }
142 142
143 /** 143 /**
144 Returns a JSON object representing up to N draws, where N is < SkDebugCa nvas::getSize(). 144 Returns a JSON object representing up to N draws, where N is <= SkDebugC anvas::getSize().
145 The encoder may use the UrlDataManager to store binary data such as imag es, referring to 145 The encoder may use the UrlDataManager to store binary data such as imag es, referring to
146 them via URLs embedded in the JSON. 146 them via URLs embedded in the JSON.
147 */ 147 */
148 Json::Value toJSON(UrlDataManager& urlDataManager, int n); 148 Json::Value toJSON(UrlDataManager& urlDataManager, int n);
149 149
150 //////////////////////////////////////////////////////////////////////////////// 150 ////////////////////////////////////////////////////////////////////////////////
151 // Inherited from SkCanvas 151 // Inherited from SkCanvas
152 //////////////////////////////////////////////////////////////////////////////// 152 ////////////////////////////////////////////////////////////////////////////////
153 153
154 static const int kVizImageHeight = 256; 154 static const int kVizImageHeight = 256;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 void outputPoints(const SkPoint* pts, int count); 268 void outputPoints(const SkPoint* pts, int count);
269 void outputPointsCommon(const SkPoint* pts, int count); 269 void outputPointsCommon(const SkPoint* pts, int count);
270 void outputScalar(SkScalar num); 270 void outputScalar(SkScalar num);
271 271
272 void updatePaintFilterCanvas(); 272 void updatePaintFilterCanvas();
273 273
274 typedef SkCanvas INHERITED; 274 typedef SkCanvas INHERITED;
275 }; 275 };
276 276
277 #endif 277 #endif
OLDNEW
« no previous file with comments | « no previous file | tools/skiaserve/skiaserve.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698