Index: src/gpu/batches/GrRectBatchFactory.h |
diff --git a/src/gpu/batches/GrRectBatchFactory.h b/src/gpu/batches/GrRectBatchFactory.h |
index 3de8c020f25ab31ed0eb0ab6b906b14a3ab59956..a1082a7aae4277f2c5d1db7467e033facd28fbce 100644 |
--- a/src/gpu/batches/GrRectBatchFactory.h |
+++ b/src/gpu/batches/GrRectBatchFactory.h |
@@ -11,6 +11,7 @@ |
#include "GrAAFillRectBatch.h" |
#include "GrColor.h" |
#include "GrNonAAFillRectBatch.h" |
+#include "GrNonAAStrokeRectBatch.h" |
class GrBatch; |
class SkMatrix; |
@@ -45,11 +46,13 @@ inline GrDrawBatch* CreateAAFill(GrColor color, |
return GrAAFillRectBatch::Create(color, viewMatrix, localMatrix, rect, devRect); |
} |
-GrDrawBatch* CreateNonAAStroke(GrColor color, |
- const SkMatrix& viewMatrix, |
- const SkRect& rect, |
- SkScalar strokeWidth, |
- bool snapToPixelCenters); |
+inline GrDrawBatch* CreateNonAAStroke(GrColor color, |
+ const SkMatrix& viewMatrix, |
+ const SkRect& rect, |
+ SkScalar strokeWidth, |
+ bool snapToPixelCenters) { |
+ return GrNonAAStrokeRectBatch::Create(color, viewMatrix, rect, strokeWidth, snapToPixelCenters); |
+} |
GrDrawBatch* CreateAAStroke(GrColor, |
const SkMatrix& viewMatrix, |