aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrRectBatchFactory.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-08-12 06:36:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-12 06:36:57 -0700
commit37eb184e26a96f5c3593b7c2cf29f1a197eb5ac9 (patch)
tree157ed848d53ba059f55d4e65f6d0895934bf4de8 /src/gpu/batches/GrRectBatchFactory.h
parent9cdcabefa33d49febfdb45e388e762b4dee8dd6f (diff)
Move AAFillRect into CPP for templatization
Diffstat (limited to 'src/gpu/batches/GrRectBatchFactory.h')
-rw-r--r--src/gpu/batches/GrRectBatchFactory.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gpu/batches/GrRectBatchFactory.h b/src/gpu/batches/GrRectBatchFactory.h
index d6fe67398d..8a08883438 100644
--- a/src/gpu/batches/GrRectBatchFactory.h
+++ b/src/gpu/batches/GrRectBatchFactory.h
@@ -8,6 +8,7 @@
#ifndef GrRectBatchFactory_DEFINED
#define GrRectBatchFactory_DEFINED
+#include "GrAAFillRectBatch.h"
#include "GrColor.h"
class GrBatch;
@@ -26,10 +27,12 @@ GrBatch* CreateFillBW(GrColor color,
const SkRect* localRect,
const SkMatrix* localMatrix);
-GrBatch* CreateFillAA(GrColor color,
+static GrBatch* CreateFillAA(GrColor color,
const SkMatrix& viewMatrix,
const SkRect& rect,
- const SkRect& devRect);
+ const SkRect& devRect) {
+ return GrAAFillRectBatch::Create(color, viewMatrix, rect, devRect);
+}
GrBatch* CreateStrokeBW(GrColor color,
const SkMatrix& viewMatrix,