aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrDefaultPathRenderer.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-01-13 10:08:27 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-13 10:08:27 -0800
commit04194f32f4f5ec9029357a18c0f1f9dc3404fc0c (patch)
tree9dccf58152272d4b36c4279e2566ed526f98eb9b /src/gpu/batches/GrDefaultPathRenderer.cpp
parentbb25b5324965d53253fc3ad9f43b7d6faa2f9100 (diff)
Remove two varieties of drawNonAARect from GrDrawTarget
Diffstat (limited to 'src/gpu/batches/GrDefaultPathRenderer.cpp')
-rw-r--r--src/gpu/batches/GrDefaultPathRenderer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/batches/GrDefaultPathRenderer.cpp b/src/gpu/batches/GrDefaultPathRenderer.cpp
index 638e03cb79..8ed3155a68 100644
--- a/src/gpu/batches/GrDefaultPathRenderer.cpp
+++ b/src/gpu/batches/GrDefaultPathRenderer.cpp
@@ -20,6 +20,7 @@
#include "SkTLazy.h"
#include "SkTraceEvent.h"
+#include "batches/GrRectBatchFactory.h"
#include "batches/GrVertexBatch.h"
GrDefaultPathRenderer::GrDefaultPathRenderer(bool separateStencilSupport,
@@ -697,7 +698,10 @@ bool GrDefaultPathRenderer::internalDrawPath(GrDrawTarget* target,
}
const SkMatrix& viewM = (reverse && viewMatrix.hasPerspective()) ? SkMatrix::I() :
viewMatrix;
- target->drawNonAARect(*pipelineBuilder, color, viewM, bounds, localMatrix);
+ SkAutoTUnref<GrDrawBatch> batch(
+ GrRectBatchFactory::CreateNonAAFill(color, viewM, bounds, nullptr,
+ &localMatrix));
+ target->drawBatch(*pipelineBuilder, batch);
} else {
if (passCount > 1) {
pipelineBuilder->setDisableColorXPFactory();