Index: src/gpu/GrOvalRenderer.cpp |
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp |
index 3862900d4c643c25ea4fc88df6148fdca013f068..6cb203c05a754e10864f2ce2831468144deb64de 100644 |
--- a/src/gpu/GrOvalRenderer.cpp |
+++ b/src/gpu/GrOvalRenderer.cpp |
@@ -19,6 +19,7 @@ |
#include "SkRRect.h" |
#include "SkStrokeRec.h" |
#include "SkTLazy.h" |
+#include "batches/GrRectBatchFactory.h" |
#include "batches/GrVertexBatch.h" |
#include "effects/GrRRectEffect.h" |
#include "glsl/GrGLSLFragmentShaderBuilder.h" |
@@ -1493,7 +1494,9 @@ bool GrOvalRenderer::DrawDRRect(GrDrawTarget* target, |
if (applyAA) { |
bounds.outset(SK_ScalarHalf, SK_ScalarHalf); |
} |
- target->drawNonAARect(pipelineBuilder, color, SkMatrix::I(), bounds, invert); |
+ SkAutoTUnref<GrDrawBatch> batch(GrRectBatchFactory::CreateNonAAFill(color, SkMatrix::I(), |
+ bounds, nullptr, &invert)); |
+ target->drawBatch(pipelineBuilder, batch); |
return true; |
} |