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