| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 SkPaintFilterCanvas_DEFINED | 8 #ifndef SkPaintFilterCanvas_DEFINED |
| 9 #define SkPaintFilterCanvas_DEFINED | 9 #define SkPaintFilterCanvas_DEFINED |
| 10 | 10 |
| 11 #include "SkNWayCanvas.h" | 11 #include "SkNWayCanvas.h" |
| 12 | 12 |
| 13 /** \class SkPaintFilterCanvas | 13 /** \class SkPaintFilterCanvas |
| 14 | 14 |
| 15 A utility proxy base class for implementing paint filters. | 15 A utility proxy base class for implementing paint filters. |
| 16 */ | 16 */ |
| 17 class SK_API SkPaintFilterCanvas : public SkNWayCanvas { | 17 class SK_API SkPaintFilterCanvas : public SkNWayCanvas { |
| 18 public: | 18 public: |
| 19 /** |
| 20 * DEPRECATED: use the variant below. |
| 21 */ |
| 19 SkPaintFilterCanvas(int width, int height); | 22 SkPaintFilterCanvas(int width, int height); |
| 20 | 23 |
| 24 /** |
| 25 * The new SkPaintFilterCanvas is configured for forwarding to the |
| 26 * specified canvas. Also copies the target canvas matrix and clip bounds. |
| 27 */ |
| 28 SkPaintFilterCanvas(SkCanvas* canvas); |
| 29 |
| 21 enum Type { | 30 enum Type { |
| 22 kPaint_Type, | 31 kPaint_Type, |
| 23 kPoint_Type, | 32 kPoint_Type, |
| 24 kBitmap_Type, | 33 kBitmap_Type, |
| 25 kRect_Type, | 34 kRect_Type, |
| 26 kRRect_Type, | 35 kRRect_Type, |
| 27 kDRRect_Type, | 36 kDRRect_Type, |
| 28 kOval_Type, | 37 kOval_Type, |
| 29 kPath_Type, | 38 kPath_Type, |
| 30 kPicture_Type, | 39 kPicture_Type, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 93 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
| 85 const SkPaint& paint) override; | 94 const SkPaint& paint) override; |
| 86 | 95 |
| 87 private: | 96 private: |
| 88 class AutoPaintFilter; | 97 class AutoPaintFilter; |
| 89 | 98 |
| 90 typedef SkNWayCanvas INHERITED; | 99 typedef SkNWayCanvas INHERITED; |
| 91 }; | 100 }; |
| 92 | 101 |
| 93 #endif | 102 #endif |
| OLD | NEW |