From f5a83e818483ef910ffd107df8f98b5ee24671f5 Mon Sep 17 00:00:00 2001 From: robertphillips Date: Wed, 10 Aug 2016 12:00:09 -0700 Subject: 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 --- include/effects/SkBlurMaskFilter.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/effects') 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: -- cgit v1.2.3