From 82f44319159bb98dcacdbbec7ea643dde5ed024b Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Wed, 11 Jan 2017 13:42:54 -0500 Subject: Make GrPaints move their GrProcessor ownership into GrPipelineBuilder. This makes GrPaints usable only once. In some places we must make copies in order to issue draws with the same paint state. Change-Id: Ie816e5185ce93a064111cad64c6880e1e21184c2 Reviewed-on: https://skia-review.googlesource.com/6844 Reviewed-by: Robert Phillips Commit-Queue: Brian Salomon --- gm/constcolorprocessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gm/constcolorprocessor.cpp') diff --git a/gm/constcolorprocessor.cpp b/gm/constcolorprocessor.cpp index 0fe476ff56..17a1bc5820 100644 --- a/gm/constcolorprocessor.cpp +++ b/gm/constcolorprocessor.cpp @@ -111,8 +111,8 @@ protected: std::unique_ptr op(GrRectOpFactory::MakeNonAAFill( grPaint.getColor(), viewMatrix, renderRect, nullptr, nullptr)); - renderTargetContext->priv().testingOnly_addDrawOp(grPaint, GrAAType::kNone, - std::move(op)); + renderTargetContext->priv().testingOnly_addDrawOp( + std::move(grPaint), GrAAType::kNone, std::move(op)); // Draw labels for the input to the processor and the processor to the right of // the test rect. The input label appears above the processor label. -- cgit v1.2.3