| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |