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 SkMergeImageFilter_DEFINED |
9 | #define SkMergeImageFilter_DEFINED |
10 | |
11 | #include "include/core/SkImageFilter.h" |
12 | |
13 | // DEPRECATED: Use include/effects/SkImageFilters::Merge |
14 | class SK_API SkMergeImageFilter { |
15 | public: |
16 | static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter>* const filters, int count, |
17 | const SkImageFilter::CropRect* cropRect = nullptr); |
18 | |
19 | static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter> first, sk_sp<SkImageFilter> second, |
20 | const SkImageFilter::CropRect* cropRect = nullptr) { |
21 | sk_sp<SkImageFilter> array[] = { |
22 | std::move(first), |
23 | std::move(second), |
24 | }; |
25 | return Make(array, 2, cropRect); |
26 | } |
27 | |
28 | static void RegisterFlattenables(); |
29 | |
30 | private: |
31 | SkMergeImageFilter() = delete; |
32 | }; |
33 | |
34 | #endif |
35 |