Add GPU-side caching of mask-filtered path masks (take 2)
This takes about half the time on the instagram skp
Change-Id: I3aa15f1298551139907ccb997ee02a1477a07fdb
Reviewed-on: https://skia-review.googlesource.com/148905
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/core/SkMaskFilterBase.h b/src/core/SkMaskFilterBase.h
index cd48477..d907263 100644
--- a/src/core/SkMaskFilterBase.h
+++ b/src/core/SkMaskFilterBase.h
@@ -99,10 +99,10 @@
* this would hide the RRect special case and the mask generation
*/
virtual bool canFilterMaskGPU(const GrShape&,
- const SkRect& devSpaceShapeBounds,
+ const SkIRect& devSpaceShapeBounds,
const SkIRect& clipBounds,
const SkMatrix& ctm,
- SkRect* maskRect) const;
+ SkIRect* maskRect) const;
/**
* Try to directly render the mask filter into the target. Returns true if drawing was