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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 void setUserMatrix(SkMatrix matrix) { | 135 void setUserMatrix(SkMatrix matrix) { |
136 fUserMatrix = matrix; | 136 fUserMatrix = matrix; |
137 } | 137 } |
138 | 138 |
139 SkString clipStackData() const { return fClipStackData; } | 139 SkString clipStackData() const { return fClipStackData; } |
140 | 140 |
141 //////////////////////////////////////////////////////////////////////////////// | 141 //////////////////////////////////////////////////////////////////////////////// |
142 // Inherited from SkCanvas | 142 // Inherited from SkCanvas |
143 //////////////////////////////////////////////////////////////////////////////// | 143 //////////////////////////////////////////////////////////////////////////////// |
144 | 144 |
145 void beginCommentGroup(const char* description) override; | |
146 void addComment(const char* kywd, const char* value) override; | |
147 void endCommentGroup() override; | |
148 | |
149 static const int kVizImageHeight = 256; | 145 static const int kVizImageHeight = 256; |
150 static const int kVizImageWidth = 256; | 146 static const int kVizImageWidth = 256; |
151 | 147 |
152 bool isClipEmpty() const override { return false; } | 148 bool isClipEmpty() const override { return false; } |
153 bool isClipRect() const override { return true; } | 149 bool isClipRect() const override { return true; } |
154 bool getClipBounds(SkRect* bounds) const override { | 150 bool getClipBounds(SkRect* bounds) const override { |
155 if (bounds) { | 151 if (bounds) { |
156 bounds->setXYWH(0, 0, | 152 bounds->setXYWH(0, 0, |
157 SkIntToScalar(this->imageInfo().width()), | 153 SkIntToScalar(this->imageInfo().width()), |
158 SkIntToScalar(this->imageInfo().height())); | 154 SkIntToScalar(this->imageInfo().height())); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 void outputPoints(const SkPoint* pts, int count); | 260 void outputPoints(const SkPoint* pts, int count); |
265 void outputPointsCommon(const SkPoint* pts, int count); | 261 void outputPointsCommon(const SkPoint* pts, int count); |
266 void outputScalar(SkScalar num); | 262 void outputScalar(SkScalar num); |
267 | 263 |
268 void updatePaintFilterCanvas(); | 264 void updatePaintFilterCanvas(); |
269 | 265 |
270 typedef SkCanvas INHERITED; | 266 typedef SkCanvas INHERITED; |
271 }; | 267 }; |
272 | 268 |
273 #endif | 269 #endif |
OLD | NEW |