aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetContextPriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrRenderTargetContextPriv.h')
-rw-r--r--src/gpu/GrRenderTargetContextPriv.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/gpu/GrRenderTargetContextPriv.h b/src/gpu/GrRenderTargetContextPriv.h
index ff17505972..b232ed1087 100644
--- a/src/gpu/GrRenderTargetContextPriv.h
+++ b/src/gpu/GrRenderTargetContextPriv.h
@@ -53,28 +53,33 @@ public:
void stencilRect(const GrClip& clip,
const GrUserStencilSettings* ss,
- bool useHWAA,
+ GrAAType,
const SkMatrix& viewMatrix,
const SkRect& rect);
- void stencilPath(const GrClip&,
- bool useHWAA,
- const SkMatrix& viewMatrix,
- const GrPath*);
+ void stencilPath(const GrClip&, GrAAType, const SkMatrix& viewMatrix, const GrPath*);
+ /**
+ * Draws a rect, either AA or not, and touches the stencil buffer with the user stencil settings
+ * for each color sample written.
+ */
bool drawAndStencilRect(const GrClip&,
const GrUserStencilSettings*,
SkRegion::Op op,
bool invert,
- bool doAA,
+ GrAA,
const SkMatrix& viewMatrix,
const SkRect&);
+ /**
+ * Draws a path, either AA or not, and touches the stencil buffer with the user stencil settings
+ * for each color sample written.
+ */
bool drawAndStencilPath(const GrClip&,
const GrUserStencilSettings*,
SkRegion::Op op,
bool invert,
- bool doAA,
+ GrAA,
const SkMatrix& viewMatrix,
const SkPath&);
@@ -91,6 +96,7 @@ public:
}
void testingOnly_drawBatch(const GrPaint&,
+ GrAAType,
GrDrawOp* batch,
const GrUserStencilSettings* = nullptr,
bool snapToCenters = false);