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

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

Issue 1691773002: wire up new json code in skiaserve (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fixup comment 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/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 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 all of the draws. The encoder may use the UrlDataManager 144 Returns a JSON object representing up to N draws, where N is < SkDebugCa nvas::getSize().
145 to store binary data such as images, referring to them via URLs embedded in the JSON. 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 */ 147 */
147 Json::Value toJSON(UrlDataManager& urlDataManager); 148 Json::Value toJSON(UrlDataManager& urlDataManager, int n);
148 149
149 //////////////////////////////////////////////////////////////////////////////// 150 ////////////////////////////////////////////////////////////////////////////////
150 // Inherited from SkCanvas 151 // Inherited from SkCanvas
151 //////////////////////////////////////////////////////////////////////////////// 152 ////////////////////////////////////////////////////////////////////////////////
152 153
153 static const int kVizImageHeight = 256; 154 static const int kVizImageHeight = 256;
154 static const int kVizImageWidth = 256; 155 static const int kVizImageWidth = 256;
155 156
156 bool isClipEmpty() const override { return false; } 157 bool isClipEmpty() const override { return false; }
157 bool isClipRect() const override { return true; } 158 bool isClipRect() const override { return true; }
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 void outputPoints(const SkPoint* pts, int count); 268 void outputPoints(const SkPoint* pts, int count);
268 void outputPointsCommon(const SkPoint* pts, int count); 269 void outputPointsCommon(const SkPoint* pts, int count);
269 void outputScalar(SkScalar num); 270 void outputScalar(SkScalar num);
270 271
271 void updatePaintFilterCanvas(); 272 void updatePaintFilterCanvas();
272 273
273 typedef SkCanvas INHERITED; 274 typedef SkCanvas INHERITED;
274 }; 275 };
275 276
276 #endif 277 #endif
OLDNEW
« no previous file with comments | « no previous file | tools/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698