Make GrFragmentProcessor be non-refcounted and use std::unique_ptr.
Change-Id: I985e54a071338e99292a5aa2f42c92bc115b4008
Reviewed-on: https://skia-review.googlesource.com/32760
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp
index 68260de..930e268 100644
--- a/gm/texturedomaineffect.cpp
+++ b/gm/texturedomaineffect.cpp
@@ -122,12 +122,10 @@
GrTextureDomain::Mode mode = (GrTextureDomain::Mode) m;
GrPaint grPaint;
grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc));
- sk_sp<GrFragmentProcessor> fp(
- GrTextureDomainEffect::Make(
- proxy,
- nullptr, textureMatrices[tm],
- GrTextureDomain::MakeTexelDomainForMode(texelDomains[d], mode),
- mode, GrSamplerParams::kNone_FilterMode));
+ auto fp = GrTextureDomainEffect::Make(
+ proxy, nullptr, textureMatrices[tm],
+ GrTextureDomain::MakeTexelDomainForMode(texelDomains[d], mode), mode,
+ GrSamplerParams::kNone_FilterMode);
if (!fp) {
continue;