Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: src/effects/SkMorphologyImageFilter.cpp

Issue 1913743002: Add another dollop of sk_sp to SkSpecialImage and SkSpecialSurface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rm std::move Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/effects/SkLightingImageFilter.cpp ('k') | src/effects/SkXfermodeImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkMorphologyImageFilter.cpp
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
index d5a048c6ce554d6f75939421c9d48b52a2b2c23d..810d0e13e4f6ae7fd8abd5d11e978c293afbbb68 100644
--- a/src/effects/SkMorphologyImageFilter.cpp
+++ b/src/effects/SkMorphologyImageFilter.cpp
@@ -474,7 +474,7 @@ static sk_sp<SkSpecialImage> apply_morphology(GrContext* context,
const SkIRect& rect,
GrMorphologyEffect::MorphologyType morphType,
SkISize radius) {
- SkAutoTUnref<GrTexture> srcTexture(input->asTextureRef(context));
+ sk_sp<GrTexture> srcTexture(input->asTextureRef(context));
SkASSERT(srcTexture);
// setup new clip
@@ -502,7 +502,7 @@ static sk_sp<SkSpecialImage> apply_morphology(GrContext* context,
return nullptr;
}
- apply_morphology_pass(dstDrawContext, clip, srcTexture,
+ apply_morphology_pass(dstDrawContext, clip, srcTexture.get(),
srcRect, dstRect, radius.fWidth, morphType,
Gr1DKernelEffect::kX_Direction);
SkIRect clearRect = SkIRect::MakeXYWH(dstRect.fLeft, dstRect.fBottom,
@@ -526,7 +526,7 @@ static sk_sp<SkSpecialImage> apply_morphology(GrContext* context,
return nullptr;
}
- apply_morphology_pass(dstDrawContext, clip, srcTexture,
+ apply_morphology_pass(dstDrawContext, clip, srcTexture.get(),
srcRect, dstRect, radius.fHeight, morphType,
Gr1DKernelEffect::kY_Direction);
@@ -535,7 +535,7 @@ static sk_sp<SkSpecialImage> apply_morphology(GrContext* context,
return SkSpecialImage::MakeFromGpu(SkIRect::MakeWH(rect.width(), rect.height()),
kNeedNewImageUniqueID_SpecialImage,
- srcTexture, &input->props());
+ std::move(srcTexture), &input->props());
}
#endif
« no previous file with comments | « src/effects/SkLightingImageFilter.cpp ('k') | src/effects/SkXfermodeImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698