1 | /* |
2 | * Copyright 2012 The Android Open Source Project |
3 | * |
4 | * Use of this source code is governed by a BSD-style license that can be |
5 | * found in the LICENSE file. |
6 | */ |
7 | |
8 | #ifndef SkMorphologyImageFilter_DEFINED |
9 | #define SkMorphologyImageFilter_DEFINED |
10 | |
11 | #include "include/core/SkImageFilter.h" |
12 | |
13 | /////////////////////////////////////////////////////////////////////////////// |
14 | // DEPRECATED: Use include/effects/SkImageFilters::Dilate |
15 | class SK_API SkDilateImageFilter { |
16 | public: |
17 | static sk_sp<SkImageFilter> Make(SkScalar radiusX, SkScalar radiusY, |
18 | sk_sp<SkImageFilter> input, |
19 | const SkImageFilter::CropRect* cropRect = nullptr); |
20 | |
21 | // Registers all morphology filter implementations |
22 | static void RegisterFlattenables(); |
23 | |
24 | private: |
25 | SkDilateImageFilter() = delete; |
26 | }; |
27 | |
28 | /////////////////////////////////////////////////////////////////////////////// |
29 | // DEPRECATED: Use include/effects/SkImageFilters::Erode |
30 | class SK_API SkErodeImageFilter { |
31 | public: |
32 | static sk_sp<SkImageFilter> Make(SkScalar radiusX, SkScalar radiusY, |
33 | sk_sp<SkImageFilter> input, |
34 | const SkImageFilter::CropRect* cropRect = nullptr); |
35 | |
36 | private: |
37 | SkErodeImageFilter() = delete; |
38 | }; |
39 | |
40 | #endif |
41 | |