diff options
Diffstat (limited to 'gm/yuvtorgbeffect.cpp')
-rw-r--r-- | gm/yuvtorgbeffect.cpp | 12 |
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)); } } } |