Debian Codegraph @

src/text/gpu/SDFMaskFilter.h

raw
1 /*
2 * Copyright 2022 Google Inc.
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 sktext_gpu_SDFMaskFilter_DEFINED
9 #define sktext_gpu_SDFMaskFilter_DEFINED
10
11 #include "include/core/SkTypes.h"
12
13 #if !defined(SK_DISABLE_SDF_TEXT)
14
15 #include "include/core/SkMaskFilter.h"
16 #include "include/core/SkRefCnt.h"
17
18 namespace sktext::gpu {
19
20 /** \class SDFMaskFilter
21
22 This mask filter converts an alpha mask to a signed distance field representation
23 */
24 class SDFMaskFilter : public SkMaskFilter {
25 public:
26 static sk_sp<SkMaskFilter> Make();
27 };
28
29 } // namespace sktext::gpu
30
31 #endif // !defined(SK_DISABLE_SDF_TEXT)
32
33 #endif