| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; | 219 virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; |
| 220 | 220 |
| 221 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; | 221 virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; |
| 222 | 222 |
| 223 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; | 223 virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; |
| 224 | 224 |
| 225 static const int kVizImageHeight = 256; | 225 static const int kVizImageHeight = 256; |
| 226 static const int kVizImageWidth = 256; | 226 static const int kVizImageWidth = 256; |
| 227 | 227 |
| 228 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } | 228 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } |
| 229 virtual bool isClipRect() const SK_OVERRIDE { return true; } |
| 230 #ifdef SK_SUPPORT_LEGACY_GETCLIPTYPE |
| 229 virtual ClipType getClipType() const SK_OVERRIDE { | 231 virtual ClipType getClipType() const SK_OVERRIDE { |
| 230 return kRect_ClipType; | 232 return kRect_ClipType; |
| 231 } | 233 } |
| 234 #endif |
| 232 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { | 235 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { |
| 233 if (NULL != bounds) { | 236 if (NULL != bounds) { |
| 234 bounds->setXYWH(0, 0, | 237 bounds->setXYWH(0, 0, |
| 235 SkIntToScalar(this->imageInfo().fWidth), | 238 SkIntToScalar(this->imageInfo().fWidth), |
| 236 SkIntToScalar(this->imageInfo().fHeight)); | 239 SkIntToScalar(this->imageInfo().fHeight)); |
| 237 } | 240 } |
| 238 return true; | 241 return true; |
| 239 } | 242 } |
| 240 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { | 243 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { |
| 241 if (NULL != bounds) { | 244 if (NULL != bounds) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 /** | 305 /** |
| 303 Applies any panning and zooming the user has specified before | 306 Applies any panning and zooming the user has specified before |
| 304 drawing anything else into the canvas. | 307 drawing anything else into the canvas. |
| 305 */ | 308 */ |
| 306 void applyUserTransform(SkCanvas* canvas); | 309 void applyUserTransform(SkCanvas* canvas); |
| 307 | 310 |
| 308 typedef SkCanvas INHERITED; | 311 typedef SkCanvas INHERITED; |
| 309 }; | 312 }; |
| 310 | 313 |
| 311 #endif | 314 #endif |
| OLD | NEW |