Index: gm/constcolorprocessor.cpp |
diff --git a/gm/constcolorprocessor.cpp b/gm/constcolorprocessor.cpp |
index ce2ae6e9fddbdf388700769205403a6793e84bca..8ae93a4ae929f62f8b8eab90f58371c5244bf950 100644 |
--- a/gm/constcolorprocessor.cpp |
+++ b/gm/constcolorprocessor.cpp |
@@ -105,10 +105,10 @@ protected: |
GrConstColorProcessor::InputMode mode = (GrConstColorProcessor::InputMode) m; |
GrColor color = kColors[procColor]; |
- SkAutoTUnref<GrFragmentProcessor> fp(GrConstColorProcessor::Create(color, mode)); |
+ sk_sp<GrFragmentProcessor> fp(GrConstColorProcessor::Make(color, mode)); |
GrPipelineBuilder pipelineBuilder(grPaint, drawContext->mustUseHWAA(grPaint)); |
- pipelineBuilder.addColorFragmentProcessor(fp); |
+ pipelineBuilder.addColorFragmentProcessor(std::move(fp)); |
SkAutoTUnref<GrDrawBatch> batch( |
GrRectBatchFactory::CreateNonAAFill(grPaint.getColor(), viewMatrix, |