Index: src/gpu/batches/GrRectBatchFactory.h |
diff --git a/src/gpu/batches/GrRectBatchFactory.h b/src/gpu/batches/GrRectBatchFactory.h |
index 70ceac2c397b1a1e533308bbcf22fdbeaca1d9aa..d6fe67398d77a06d5a125c723f1dc1580e6593b9 100644 |
--- a/src/gpu/batches/GrRectBatchFactory.h |
+++ b/src/gpu/batches/GrRectBatchFactory.h |
@@ -13,10 +13,10 @@ |
class GrBatch; |
class SkMatrix; |
struct SkRect; |
+class SkStrokeRec; |
/* |
- * A factory for returning batches which can draw rectangles. Right now this only handles non-AA |
- * rects |
+ * A factory for returning batches which can draw rectangles. |
*/ |
namespace GrRectBatchFactory { |
@@ -26,12 +26,28 @@ GrBatch* CreateFillBW(GrColor color, |
const SkRect* localRect, |
const SkMatrix* localMatrix); |
+GrBatch* CreateFillAA(GrColor color, |
+ const SkMatrix& viewMatrix, |
+ const SkRect& rect, |
+ const SkRect& devRect); |
+ |
GrBatch* CreateStrokeBW(GrColor color, |
const SkMatrix& viewMatrix, |
const SkRect& rect, |
SkScalar strokeWidth, |
bool snapToPixelCenters); |
+GrBatch* CreateStrokeAA(GrColor, |
+ const SkMatrix& viewMatrix, |
+ const SkRect& rect, |
+ const SkRect& devRect, |
+ const SkStrokeRec& stroke); |
+ |
+// First rect is outer; second rect is inner |
+GrBatch* CreateFillNestedRectsAA(GrColor, |
+ const SkMatrix& viewMatrix, |
+ const SkRect rects[2]); |
+ |
}; |
#endif |