From 9f549358b3ac9f61e78b194e39d6ac6eb322e35e Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Thu, 8 Dec 2016 10:35:19 -0500 Subject: Remove antialiasing control from GrPaint. This adds an additional param (of new enum type GrAA) to draws that can antialias and a new enum GrAAType to indicate the AA technique (none, fragment shader computed coverage, msaa). Some GMs change due to this: 1) In some places we weren't disabling MSAA when the draw was supposed to be unantialiased. 2) Some bounding rect draws that use GrFragmentProcessors were unnecessarily turning on antialiasing, by disabling it a very small number of pixel LSBs change. Change-Id: I7d8d8793dda70bcd373d09055beb9949c1a8a4d0 Reviewed-on: https://skia-review.googlesource.com/5608 Commit-Queue: Brian Salomon Reviewed-by: Robert Phillips --- gm/beziereffects.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gm/beziereffects.cpp') diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp index f924ee070a..9a1990b383 100644 --- a/gm/beziereffects.cpp +++ b/gm/beziereffects.cpp @@ -195,7 +195,8 @@ protected: sk_sp batch = sk_make_sp( gp, bounds, color, klmEqs, klmSigns[c]); - renderTargetContext->priv().testingOnly_drawBatch(grPaint, batch.get()); + renderTargetContext->priv().testingOnly_drawBatch(grPaint, GrAAType::kNone, + batch.get()); } ++col; if (numCols == col) { @@ -327,7 +328,8 @@ protected: sk_sp batch( new BezierCubicOrConicTestBatch(gp, bounds, color, klmEqs, 1.f)); - renderTargetContext->priv().testingOnly_drawBatch(grPaint, batch.get()); + renderTargetContext->priv().testingOnly_drawBatch(grPaint, GrAAType::kNone, + batch.get()); } ++col; if (numCols == col) { @@ -538,7 +540,8 @@ protected: sk_sp batch(new BezierQuadTestBatch(gp, bounds, color, DevToUV)); - renderTargetContext->priv().testingOnly_drawBatch(grPaint, batch.get()); + renderTargetContext->priv().testingOnly_drawBatch(grPaint, GrAAType::kNone, + batch.get()); } ++col; if (numCols == col) { -- cgit v1.2.3