1 /* 2 * Copyright 2006 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 Sk2DPathEffect_DEFINED 9 #define Sk2DPathEffect_DEFINED 10 11 #include "include/core/SkRefCnt.h" 12 #include "include/core/SkScalar.h" 13 #include "include/core/SkTypes.h" 14 15 class SkMatrix; 16 class SkPath; 17 class SkPathEffect; 18 19 class SK_API SkLine2DPathEffect { 20 public: 21 static sk_sp<SkPathEffect> Make(SkScalar width, const SkMatrix& matrix); 22 23 static void RegisterFlattenables(); 24 }; 25 26 class SK_API SkPath2DPathEffect { 27 public: 28 static sk_sp<SkPathEffect> Make(const SkMatrix& matrix, const SkPath& path); 29 30 static void RegisterFlattenables(); 31 }; 32 33 #endif 34