From f8334781914363caf537f22f012fcd5c03c60dad Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Tue, 3 Jan 2017 09:42:58 -0500 Subject: Remove ref counting from GrOp. Instead use std::unique_ptr to manage GrOp lifetime. Change-Id: Ic1dc1e0ffd7254c3994221f498677af5bbf66a71 Reviewed-on: https://skia-review.googlesource.com/6479 Commit-Queue: Brian Salomon Reviewed-by: Brian Osman --- gm/texturedomaineffect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gm/texturedomaineffect.cpp') diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp index cf7ec41d62..9ff694d281 100644 --- a/gm/texturedomaineffect.cpp +++ b/gm/texturedomaineffect.cpp @@ -126,7 +126,7 @@ protected: const SkMatrix viewMatrix = SkMatrix::MakeTrans(x, y); grPaint.addColorFragmentProcessor(std::move(fp)); - sk_sp op(GrRectOpFactory::MakeNonAAFill( + std::unique_ptr op(GrRectOpFactory::MakeNonAAFill( GrColor_WHITE, viewMatrix, renderRect, nullptr, nullptr)); renderTargetContext->priv().testingOnly_addDrawOp(grPaint, GrAAType::kNone, std::move(op)); -- cgit v1.2.3