From 1951f3ddbddcf5e7cdfe151981d13a1bdb6a3baa Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Fri, 9 Dec 2016 16:07:12 -0500 Subject: Rename testingOnly_drawBatch to testingOnly_addDrawOp and sk_sp Change-Id: I35efd4ad2b7132145c1e477f0b1f283276e9fad5 Reviewed-on: https://skia-review.googlesource.com/5704 Reviewed-by: Brian Osman Commit-Queue: Brian Salomon --- gm/yuvtorgbeffect.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gm/yuvtorgbeffect.cpp') 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 batch( + sk_sp 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 batch(GrRectBatchFactory::CreateNonAAFill( + sk_sp 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)); } } } -- cgit v1.2.3