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