diff options
author | 2015-08-12 06:36:57 -0700 | |
---|---|---|
committer | 2015-08-12 06:36:57 -0700 | |
commit | 37eb184e26a96f5c3593b7c2cf29f1a197eb5ac9 (patch) | |
tree | 157ed848d53ba059f55d4e65f6d0895934bf4de8 /src/gpu/batches/GrRectBatchFactory.h | |
parent | 9cdcabefa33d49febfdb45e388e762b4dee8dd6f (diff) |
Move AAFillRect into CPP for templatization
BUG=skia:
Review URL: https://codereview.chromium.org/1278043003
Diffstat (limited to 'src/gpu/batches/GrRectBatchFactory.h')
-rw-r--r-- | src/gpu/batches/GrRectBatchFactory.h | 7 |
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, |