aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrRectBatchFactory.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-08-13 10:05:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-13 10:05:51 -0700
commit9c80b5ff592caf1c18b43e98c85bc8340b3ac531 (patch)
tree19af39b4cc96d2aca98a75098248b6941b3482c4 /src/gpu/batches/GrRectBatchFactory.h
parentd5b75638f77974165a59b44a59a442728bb39fa5 (diff)
Move GrRectBatch to GrBWFillRectBatch and make internal
Diffstat (limited to 'src/gpu/batches/GrRectBatchFactory.h')
-rw-r--r--src/gpu/batches/GrRectBatchFactory.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/gpu/batches/GrRectBatchFactory.h b/src/gpu/batches/GrRectBatchFactory.h
index 8a08883438..6ded22db7b 100644
--- a/src/gpu/batches/GrRectBatchFactory.h
+++ b/src/gpu/batches/GrRectBatchFactory.h
@@ -9,6 +9,7 @@
#define GrRectBatchFactory_DEFINED
#include "GrAAFillRectBatch.h"
+#include "GrBWFillRectBatch.h"
#include "GrColor.h"
class GrBatch;
@@ -21,16 +22,18 @@ class SkStrokeRec;
*/
namespace GrRectBatchFactory {
-GrBatch* CreateFillBW(GrColor color,
- const SkMatrix& viewMatrix,
- const SkRect& rect,
- const SkRect* localRect,
- const SkMatrix* localMatrix);
+inline GrBatch* CreateFillBW(GrColor color,
+ const SkMatrix& viewMatrix,
+ const SkRect& rect,
+ const SkRect* localRect,
+ const SkMatrix* localMatrix) {
+ return GrBWFillRectBatch::Create(color, viewMatrix, rect, localRect, localMatrix);
+}
-static GrBatch* CreateFillAA(GrColor color,
- const SkMatrix& viewMatrix,
- const SkRect& rect,
- const SkRect& devRect) {
+inline GrBatch* CreateFillAA(GrColor color,
+ const SkMatrix& viewMatrix,
+ const SkRect& rect,
+ const SkRect& devRect) {
return GrAAFillRectBatch::Create(color, viewMatrix, rect, devRect);
}