Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index fed97a9b0302624fe417ff204d33908ffd92c05a..f5d4af6c4c102fedff23fb4ebe6102d3180f35d6 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -312,14 +312,33 @@ void GrDrawTarget::drawPaths(const GrPipelineBuilder& pipelineBuilder, |
void GrDrawTarget::drawBWRect(const GrPipelineBuilder& pipelineBuilder, |
GrColor color, |
const SkMatrix& viewMatrix, |
+ const SkRect& rect) { |
+ SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateFillBW(color, viewMatrix, rect, |
+ nullptr, nullptr)); |
+ this->drawBatch(pipelineBuilder, batch); |
+} |
+ |
+void GrDrawTarget::drawBWRect(const GrPipelineBuilder& pipelineBuilder, |
+ GrColor color, |
+ const SkMatrix& viewMatrix, |
+ const SkRect& rect, |
+ const SkMatrix& localMatrix) { |
+ SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateFillBW(color, viewMatrix, rect, |
+ nullptr, &localMatrix)); |
+ this->drawBatch(pipelineBuilder, batch); |
+} |
+ |
+void GrDrawTarget::drawBWRect(const GrPipelineBuilder& pipelineBuilder, |
+ GrColor color, |
+ const SkMatrix& viewMatrix, |
const SkRect& rect, |
- const SkRect* localRect, |
- const SkMatrix* localMatrix) { |
+ const SkRect& localRect) { |
SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateFillBW(color, viewMatrix, rect, |
- localRect, localMatrix)); |
+ &localRect, nullptr)); |
this->drawBatch(pipelineBuilder, batch); |
} |
+ |
void GrDrawTarget::drawAARect(const GrPipelineBuilder& pipelineBuilder, |
GrColor color, |
const SkMatrix& viewMatrix, |