aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/rrects.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2016-12-14 11:08:17 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-14 19:27:40 +0000
commit6a639040bc3ee5369d86c9cb5b9047208beb5206 (patch)
tree8498b5e6ce910868b3c9943ec708406219c8fcca /gm/rrects.cpp
parentb7ce80b7149209dfcdb8757d39a627e8dcccefea (diff)
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 <brianosman@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'gm/rrects.cpp')
-rw-r--r--gm/rrects.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gm/rrects.cpp b/gm/rrects.cpp
index 43b06eb473..0810f274de 100644
--- a/gm/rrects.cpp
+++ b/gm/rrects.cpp
@@ -10,7 +10,7 @@
#include "GrContext.h"
#include "GrRenderTargetContextPriv.h"
#include "batches/GrDrawOp.h"
-#include "batches/GrRectBatchFactory.h"
+#include "batches/GrRectOpFactory.h"
#include "effects/GrRRectEffect.h"
#endif
#include "SkRRect.h"
@@ -115,9 +115,8 @@ protected:
SkRect bounds = rrect.getBounds();
bounds.outset(2.f, 2.f);
- sk_sp<GrDrawOp> op(
- GrRectBatchFactory::CreateNonAAFill(0xff000000, SkMatrix::I(),
- bounds, nullptr, nullptr));
+ sk_sp<GrDrawOp> op(GrRectOpFactory::MakeNonAAFill(
+ 0xff000000, SkMatrix::I(), bounds, nullptr, nullptr));
renderTargetContext->priv().testingOnly_addDrawOp(grPaint,
GrAAType::kNone,
std::move(op));