| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkNulCanvas_DEFINED | 8 #ifndef SkNulCanvas_DEFINED |
| 9 #define SkNulCanvas_DEFINED | 9 #define SkNulCanvas_DEFINED |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 bool doAntiAlias = false) {return true;} | 42 bool doAntiAlias = false) {return true;} |
| 43 virtual bool clipPath(const SkPath& path, | 43 virtual bool clipPath(const SkPath& path, |
| 44 SkRegion::Op op = SkRegion::kIntersect_Op, | 44 SkRegion::Op op = SkRegion::kIntersect_Op, |
| 45 bool doAntiAlias = false) {return true;} | 45 bool doAntiAlias = false) {return true;} |
| 46 virtual bool clipRegion(const SkRegion& deviceRgn, | 46 virtual bool clipRegion(const SkRegion& deviceRgn, |
| 47 SkRegion::Op op = SkRegion::kIntersect_Op) {return t
rue;} | 47 SkRegion::Op op = SkRegion::kIntersect_Op) {return t
rue;} |
| 48 virtual void clear(SkColor) {} | 48 virtual void clear(SkColor) {} |
| 49 virtual void drawPaint(const SkPaint& paint) {} | 49 virtual void drawPaint(const SkPaint& paint) {} |
| 50 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], | 50 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], |
| 51 const SkPaint& paint) {} | 51 const SkPaint& paint) {} |
| 52 virtual void drawRect(const SkRect& rect, const SkPaint& paint) {} | 52 virtual void onDrawRect(const SkRect& rect, const SkPaint& paint) {} |
| 53 virtual void drawOval(const SkRect& oval, const SkPaint&) {} | 53 virtual void drawOval(const SkRect& oval, const SkPaint&) {} |
| 54 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) {} | 54 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) {} |
| 55 virtual void drawPath(const SkPath& path, const SkPaint& paint) {} | 55 virtual void onDrawPath(const SkPath& path, const SkPaint& paint) {} |
| 56 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 56 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
| 57 const SkPaint* paint = NULL) {} | 57 const SkPaint* paint = NULL) {} |
| 58 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 58 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
| 59 const SkRect& dst, | 59 const SkRect& dst, |
| 60 const SkPaint* paint, | 60 const SkPaint* paint, |
| 61 DrawBitmapRectFlags flags) {} | 61 DrawBitmapRectFlags flags) {} |
| 62 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 62 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
| 63 const SkPaint* paint = NULL) {} | 63 const SkPaint* paint = NULL) {} |
| 64 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 64 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
| 65 const SkRect& dst, const SkPaint* paint = NULL)
{} | 65 const SkRect& dst, const SkPaint* paint = NULL)
{} |
| (...skipping 24 matching lines...) Expand all Loading... |
| 90 | 90 |
| 91 protected: | 91 protected: |
| 92 virtual SkCanvas* canvasForDrawIter() {return NULL;} | 92 virtual SkCanvas* canvasForDrawIter() {return NULL;} |
| 93 virtual SkBaseDevice* setDevice(SkBaseDevice* device) {return NULL;} | 93 virtual SkBaseDevice* setDevice(SkBaseDevice* device) {return NULL;} |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 typedef SkCanvas INHERITED; | 96 typedef SkCanvas INHERITED; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 #endif // SkNulCanvas_DEFINED | 99 #endif // SkNulCanvas_DEFINED |
| OLD | NEW |