Change drawPathWithMaskFilter to drawShapeWithMaskFilter
The caching portion of this (enabled by using GrShapes) is still in:
https://skia-review.googlesource.com/c/skia/+/146767 (Add GPU-side caching of mask-filtered path masks)
I would like to land them separately to assess the perf impact of dropping the path (im)mutability hint.
Change-Id: I584765177f2bb250a449d506d38f21f879fecdc6
Reviewed-on: https://skia-review.googlesource.com/147963
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrBlurUtils.h b/src/gpu/GrBlurUtils.h
index 4fb671b..d8f99f1 100644
--- a/src/gpu/GrBlurUtils.h
+++ b/src/gpu/GrBlurUtils.h
@@ -15,6 +15,7 @@
class GrPaint;
class GrRenderTarget;
class GrRenderTargetContext;
+class GrShape;
class GrStyle;
struct SkIRect;
class SkMaskFilter;
@@ -29,30 +30,27 @@
*/
namespace GrBlurUtils {
/**
- * Draw a path handling the mask filter if present.
+ * Draw a shape handling the mask filter if present.
*/
- void drawPathWithMaskFilter(GrContext*,
- GrRenderTargetContext*,
- const GrClip&,
- const SkPath& origSrcPath,
- const SkPaint&,
- const SkMatrix& viewMatrix,
- bool pathIsMutable);
+ void drawShapeWithMaskFilter(GrContext*,
+ GrRenderTargetContext*,
+ const GrClip&,
+ const SkPaint&,
+ const SkMatrix& viewMatrix,
+ const GrShape&);
/**
- * Draw a path handling the mask filter. The mask filter is not optional.
+ * Draw a shape handling the mask filter. The mask filter is not optional.
* The GrPaint will be modified after return.
*/
- void drawPathWithMaskFilter(GrContext*,
- GrRenderTargetContext*,
- const GrClip&,
- const SkPath& path,
- GrPaint&&,
- GrAA,
- const SkMatrix& viewMatrix,
- const SkMaskFilter*,
- const GrStyle&,
- bool pathIsMutable);
+ void drawShapeWithMaskFilter(GrContext*,
+ GrRenderTargetContext*,
+ const GrClip&,
+ const GrShape&,
+ GrPaint&&,
+ GrAA,
+ const SkMatrix& viewMatrix,
+ const SkMaskFilter*);
};
#endif