diff options
author | robertphillips <robertphillips@google.com> | 2016-08-10 12:00:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-10 12:00:09 -0700 |
commit | f5a83e818483ef910ffd107df8f98b5ee24671f5 (patch) | |
tree | 0cf2910d3ecd52613dcdb3b050e4528b456eba52 /include/effects | |
parent | 69aaa5a49a10454d573cbd8c5d980029d78ae459 (diff) |
Create blurred RRect mask on GPU (rather than uploading it)
This CL doesn't try to resolve any of the larger issues. It just moves the computation of the blurred RRect to the gpu and sets up to start using vertex attributes for a nine patch draw (i.e., returning the texture coordinates)
All blurred rrects using the "analytic" path will change slightly with this CL.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2222083004
Committed: https://skia.googlesource.com/skia/+/75ccdc77a70ec2083141bf9ba98eb2f01ece2479
Committed: https://skia.googlesource.com/skia/+/94b5c5a41160e0f55e267fc3d830df65736fac50
Review-Url: https://codereview.chromium.org/2222083004
Diffstat (limited to 'include/effects')
-rw-r--r-- | include/effects/SkBlurMaskFilter.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/effects/SkBlurMaskFilter.h b/include/effects/SkBlurMaskFilter.h index 3ba91774f0..4b037e70cd 100644 --- a/include/effects/SkBlurMaskFilter.h +++ b/include/effects/SkBlurMaskFilter.h @@ -65,6 +65,16 @@ public: SkScalar blurRadius); #endif + static bool ComputeBlurredRRectParams(const SkRRect& rrect, + SkScalar sigma, + SkRRect* rrectToDraw, + SkISize* widthHeight, + SkScalar xs[4], + int* numXs, + SkScalar ys[4], + int* numYs); + + SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() private: |