Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index 0389d92f482cb52f2abfabecc7443a62fd3667c4..e2e188eb12cf131d0781ddbc019b7f9d1372a784 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -350,25 +350,6 @@ void GrDrawTarget::drawPathBatch(const GrPipelineBuilder& pipelineBuilder, |
this->recordBatch(batch); |
} |
-void GrDrawTarget::drawNonAARect(const GrPipelineBuilder& pipelineBuilder, |
- GrColor color, |
- const SkMatrix& viewMatrix, |
- const SkRect& rect) { |
- SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, viewMatrix, rect, |
- nullptr, nullptr)); |
- this->drawBatch(pipelineBuilder, batch); |
-} |
- |
-void GrDrawTarget::drawAARect(const GrPipelineBuilder& pipelineBuilder, |
- GrColor color, |
- const SkMatrix& viewMatrix, |
- const SkRect& rect, |
- const SkRect& devRect) { |
- SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateAAFill(color, viewMatrix, rect, |
- devRect)); |
- this->drawBatch(pipelineBuilder, batch); |
-} |
- |
void GrDrawTarget::clear(const SkIRect* rect, |
GrColor color, |
bool canIgnoreRect, |
@@ -400,7 +381,11 @@ void GrDrawTarget::clear(const SkIRect* rect, |
GrPorterDuffXPFactory::Create(SkXfermode::kSrc_Mode))->unref(); |
pipelineBuilder.setRenderTarget(renderTarget); |
- this->drawNonAARect(pipelineBuilder, color, SkMatrix::I(), *rect); |
+ SkRect scalarRect = SkRect::Make(*rect); |
+ SkAutoTUnref<GrDrawBatch> batch( |
+ GrRectBatchFactory::CreateNonAAFill(color, SkMatrix::I(), scalarRect, |
+ nullptr, nullptr)); |
+ this->drawBatch(pipelineBuilder, batch); |
} else { |
GrBatch* batch = new GrClearBatch(*rect, color, renderTarget); |
this->recordBatch(batch); |