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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 const SkPaint&) SK_OVERRIDE; | 203 const SkPaint&) SK_OVERRIDE; |
204 | 204 |
205 static const int kVizImageHeight = 256; | 205 static const int kVizImageHeight = 256; |
206 static const int kVizImageWidth = 256; | 206 static const int kVizImageWidth = 256; |
207 | 207 |
208 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } | 208 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } |
209 virtual bool isClipRect() const SK_OVERRIDE { return true; } | 209 virtual bool isClipRect() const SK_OVERRIDE { return true; } |
210 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { | 210 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { |
211 if (NULL != bounds) { | 211 if (NULL != bounds) { |
212 bounds->setXYWH(0, 0, | 212 bounds->setXYWH(0, 0, |
213 SkIntToScalar(this->imageInfo().fWidth), | 213 SkIntToScalar(this->imageInfo().width()), |
214 SkIntToScalar(this->imageInfo().fHeight)); | 214 SkIntToScalar(this->imageInfo().height())); |
215 } | 215 } |
216 return true; | 216 return true; |
217 } | 217 } |
218 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { | 218 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { |
219 if (NULL != bounds) { | 219 if (NULL != bounds) { |
220 bounds->setLargest(); | 220 bounds->setLargest(); |
221 } | 221 } |
222 return true; | 222 return true; |
223 } | 223 } |
224 | 224 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 bool lastClipStackData(const SkPath& devPath); | 322 bool lastClipStackData(const SkPath& devPath); |
323 void outputConicPoints(const SkPoint* pts, SkScalar weight); | 323 void outputConicPoints(const SkPoint* pts, SkScalar weight); |
324 void outputPoints(const SkPoint* pts, int count); | 324 void outputPoints(const SkPoint* pts, int count); |
325 void outputPointsCommon(const SkPoint* pts, int count); | 325 void outputPointsCommon(const SkPoint* pts, int count); |
326 void outputScalar(SkScalar num); | 326 void outputScalar(SkScalar num); |
327 | 327 |
328 typedef SkCanvas INHERITED; | 328 typedef SkCanvas INHERITED; |
329 }; | 329 }; |
330 | 330 |
331 #endif | 331 #endif |
OLD | NEW |