Create GrRectBatchFactory
BUG=skia:
Review URL: https://codereview.chromium.org/1287433003
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
index 21a80de..c2a9eb0 100644
--- a/src/gpu/GrDrawTarget.cpp
+++ b/src/gpu/GrDrawTarget.cpp
@@ -22,7 +22,7 @@
#include "GrVertexBuffer.h"
#include "batches/GrBatch.h"
-#include "batches/GrRectBatch.h"
+#include "batches/GrRectBatchFactory.h"
#include "SkStrokeRec.h"
@@ -294,8 +294,8 @@
const SkRect& rect,
const SkRect* localRect,
const SkMatrix* localMatrix) {
- SkAutoTUnref<GrBatch> batch(GrRectBatch::Create(color, viewMatrix, rect, localRect,
- localMatrix));
+ SkAutoTUnref<GrBatch> batch(GrRectBatchFactory::Create(color, viewMatrix, rect, localRect,
+ localMatrix));
this->drawBatch(pipelineBuilder, batch);
}