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 | |
9 | #ifndef SkMagnifierImageFilter_DEFINED |
10 | #define SkMagnifierImageFilter_DEFINED |
11 | |
12 | #include "include/core/SkImageFilter.h" |
13 | #include "include/core/SkRect.h" |
14 | |
15 | // DEPRECATED: Use include/effects/SkImageFilters::Magnifier |
16 | class SK_API SkMagnifierImageFilter { |
17 | public: |
18 | static sk_sp<SkImageFilter> Make(const SkRect& srcRect, SkScalar inset, |
19 | sk_sp<SkImageFilter> input, |
20 | const SkImageFilter::CropRect* cropRect = nullptr); |
21 | |
22 | static void RegisterFlattenables(); |
23 | |
24 | private: |
25 | SkMagnifierImageFilter() = delete; |
26 | }; |
27 | |
28 | #endif |
29 | |