OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkBlurMaskFilter_DEFINED | 8 #ifndef SkBlurMaskFilter_DEFINED |
9 #define SkBlurMaskFilter_DEFINED | 9 #define SkBlurMaskFilter_DEFINED |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 static SkMaskFilter* CreateEmboss(SkScalar blurSigma, const SkScalar directi
on[3], | 58 static SkMaskFilter* CreateEmboss(SkScalar blurSigma, const SkScalar directi
on[3], |
59 SkScalar ambient, SkScalar specular) { | 59 SkScalar ambient, SkScalar specular) { |
60 return MakeEmboss(blurSigma, direction, ambient, specular).release(); | 60 return MakeEmboss(blurSigma, direction, ambient, specular).release(); |
61 } | 61 } |
62 SK_ATTR_DEPRECATED("use sigma version") | 62 SK_ATTR_DEPRECATED("use sigma version") |
63 static SkMaskFilter* CreateEmboss(const SkScalar direction[3], | 63 static SkMaskFilter* CreateEmboss(const SkScalar direction[3], |
64 SkScalar ambient, SkScalar specular, | 64 SkScalar ambient, SkScalar specular, |
65 SkScalar blurRadius); | 65 SkScalar blurRadius); |
66 #endif | 66 #endif |
67 | 67 |
68 static bool ComputeBlurredRRectParams(const SkRRect& rrect, | |
69 SkScalar sigma, | |
70 SkRRect* rrectToDraw, | |
71 SkISize* widthHeight, | |
72 SkScalar xs[4], | |
73 int* numXs, | |
74 SkScalar ys[4], | |
75 int* numYs); | |
76 | |
77 | |
78 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() | 68 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() |
79 | 69 |
80 private: | 70 private: |
81 SkBlurMaskFilter(); // can't be instantiated | 71 SkBlurMaskFilter(); // can't be instantiated |
82 }; | 72 }; |
83 | 73 |
84 #endif | 74 #endif |
OLD | NEW |