aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/rrects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/rrects.cpp')
-rw-r--r--gm/rrects.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gm/rrects.cpp b/gm/rrects.cpp
index a3b31d55ca..43b06eb473 100644
--- a/gm/rrects.cpp
+++ b/gm/rrects.cpp
@@ -115,12 +115,12 @@ protected:
SkRect bounds = rrect.getBounds();
bounds.outset(2.f, 2.f);
- sk_sp<GrDrawOp> batch(
+ sk_sp<GrDrawOp> op(
GrRectBatchFactory::CreateNonAAFill(0xff000000, SkMatrix::I(),
bounds, nullptr, nullptr));
- renderTargetContext->priv().testingOnly_drawBatch(grPaint,
+ renderTargetContext->priv().testingOnly_addDrawOp(grPaint,
GrAAType::kNone,
- batch.get());
+ std::move(op));
} else {
drew = false;
}