aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/yuvtorgbeffect.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2016-12-09 16:07:12 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-09 22:28:31 +0000
commit1951f3ddbddcf5e7cdfe151981d13a1bdb6a3baa (patch)
treee9cb370946328bb82ec98700be5f44b98ddc14d8 /gm/yuvtorgbeffect.cpp
parentb0b17d1e5375a65b8956a8990d63e0d02357fdaf (diff)
Rename testingOnly_drawBatch to testingOnly_addDrawOp and sk_sp
Change-Id: I35efd4ad2b7132145c1e477f0b1f283276e9fad5 Reviewed-on: https://skia-review.googlesource.com/5704 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'gm/yuvtorgbeffect.cpp')
-rw-r--r--gm/yuvtorgbeffect.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/gm/yuvtorgbeffect.cpp b/gm/yuvtorgbeffect.cpp
index d4539ea71c..168571c914 100644
--- a/gm/yuvtorgbeffect.cpp
+++ b/gm/yuvtorgbeffect.cpp
@@ -123,11 +123,11 @@ protected:
SkMatrix viewMatrix;
viewMatrix.setTranslate(x, y);
grPaint.addColorFragmentProcessor(std::move(fp));
- sk_sp<GrDrawOp> batch(
+ sk_sp<GrDrawOp> op(
GrRectBatchFactory::CreateNonAAFill(GrColor_WHITE, viewMatrix,
renderRect, nullptr, nullptr));
- renderTargetContext->priv().testingOnly_drawBatch(grPaint, GrAAType::kNone,
- batch.get());
+ renderTargetContext->priv().testingOnly_addDrawOp(grPaint, GrAAType::kNone,
+ std::move(op));
}
x += renderRect.width() + kTestPad;
}
@@ -237,10 +237,10 @@ protected:
SkMatrix viewMatrix;
viewMatrix.setTranslate(x, y);
grPaint.addColorFragmentProcessor(fp);
- sk_sp<GrDrawOp> batch(GrRectBatchFactory::CreateNonAAFill(
+ sk_sp<GrDrawOp> op(GrRectBatchFactory::CreateNonAAFill(
GrColor_WHITE, viewMatrix, renderRect, nullptr, nullptr));
- renderTargetContext->priv().testingOnly_drawBatch(grPaint, GrAAType::kNone,
- batch.get());
+ renderTargetContext->priv().testingOnly_addDrawOp(grPaint, GrAAType::kNone,
+ std::move(op));
}
}
}