From 6a639040bc3ee5369d86c9cb5b9047208beb5206 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Wed, 14 Dec 2016 11:08:17 -0500 Subject: Update rect ops to use "op" in their name and return sk_sp. Change-Id: I757c33d1cd17a7a7dda858f0fc5ab1094e3c2472 Reviewed-on: https://skia-review.googlesource.com/5985 Reviewed-by: Brian Osman Commit-Queue: Brian Salomon --- gm/bigrrectaaeffect.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gm/bigrrectaaeffect.cpp') diff --git a/gm/bigrrectaaeffect.cpp b/gm/bigrrectaaeffect.cpp index 8921a1477e..3b4ffe2f79 100644 --- a/gm/bigrrectaaeffect.cpp +++ b/gm/bigrrectaaeffect.cpp @@ -11,7 +11,7 @@ #include "GrRenderTargetContextPriv.h" #include "SkRRect.h" #include "batches/GrDrawOp.h" -#include "batches/GrRectBatchFactory.h" +#include "batches/GrRectOpFactory.h" #include "effects/GrRRectEffect.h" namespace skiagm { @@ -87,9 +87,8 @@ protected: SkRect bounds = testBounds; bounds.offset(SkIntToScalar(x), SkIntToScalar(y)); - sk_sp op( - GrRectBatchFactory::CreateNonAAFill(0xff000000, SkMatrix::I(), bounds, - nullptr, nullptr)); + sk_sp op(GrRectOpFactory::MakeNonAAFill(0xff000000, SkMatrix::I(), + bounds, nullptr, nullptr)); renderTargetContext->priv().testingOnly_addDrawOp(grPaint, GrAAType::kNone, std::move(op)); } -- cgit v1.2.3