aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBlurUtils.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-11-09 11:55:57 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-09 11:55:57 -0800
commitc55271f2551533b37043aa2e37f754832a43073c (patch)
tree5e9729a4c8fe05519805b97db38621efbc34956a /src/gpu/GrBlurUtils.h
parent3a210bfd403815bebbc7efabe7bbd373e5a3d8f8 (diff)
Separate out natively-texture image/bmp draws from cached-as-texture image/bmp draws
This makes texture-backed images and bitmaps down a new code path. It adds a pinch point via the texture adjuster that will be used to handle copied necessary for different texture targets. It also fixes bugs in the existing code exhibited by recent updates to the bleed GM. The plan is to move the the sw/generator-backed imgs/bmps on to this code path with future changes. Review URL: https://codereview.chromium.org/1424313010
Diffstat (limited to 'src/gpu/GrBlurUtils.h')
-rw-r--r--src/gpu/GrBlurUtils.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gpu/GrBlurUtils.h b/src/gpu/GrBlurUtils.h
index 0fc77266b0..d64f492473 100644
--- a/src/gpu/GrBlurUtils.h
+++ b/src/gpu/GrBlurUtils.h
@@ -11,11 +11,15 @@
class GrClip;
class GrContext;
class GrDrawContext;
+class GrPaint;
class GrRenderTarget;
+class GrStrokeInfo;
struct SkIRect;
+class SkMaskFilter;
class SkMatrix;
class SkPaint;
class SkPath;
+class SkPathEffect;
/**
@@ -35,6 +39,22 @@ namespace GrBlurUtils {
const SkMatrix* prePathMatrix,
const SkIRect& clipBounds,
bool pathIsMutable);
+
+ /**
+ * Draw a path handling the mask filter. The mask filter is not optional. The path effect is
+ * optional. The GrPaint will be modified after return.
+ */
+ void drawPathWithMaskFilter(GrContext*,
+ GrDrawContext*,
+ GrRenderTarget*,
+ const GrClip&,
+ const SkPath& path,
+ GrPaint*,
+ const SkMatrix& viewMatrix,
+ const SkMaskFilter*,
+ const SkPathEffect*,
+ const GrStrokeInfo&);
+
};
#endif