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

Unified Diff: src/gpu/effects/GrConfigConversionEffect.cpp

Issue 1918003003: Bring sk_sp to GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update 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
Index: src/gpu/effects/GrConfigConversionEffect.cpp
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp
index 4743f34692fa361cc8b27f8dbcefe791dd67ade9..6b43606bb58584cb75bd9a8dc98d39de4d65b738 100644
--- a/src/gpu/effects/GrConfigConversionEffect.cpp
+++ b/src/gpu/effects/GrConfigConversionEffect.cpp
@@ -225,8 +225,8 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context
paint1.setPorterDuffXPFactory(SkXfermode::kSrc_Mode);
- SkAutoTUnref<GrDrawContext> readDrawContext(
- context->drawContext(readTex->asRenderTarget()));
+ sk_sp<GrDrawContext> readDrawContext(
+ context->drawContext(sk_ref_sp(readTex->asRenderTarget())));
if (!readDrawContext) {
failed = true;
break;
@@ -243,8 +243,8 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context
paint2.addColorFragmentProcessor(upmToPM);
paint2.setPorterDuffXPFactory(SkXfermode::kSrc_Mode);
- SkAutoTUnref<GrDrawContext> tempDrawContext(
- context->drawContext(tempTex->asRenderTarget()));
+ sk_sp<GrDrawContext> tempDrawContext(
+ context->drawContext(sk_ref_sp(tempTex->asRenderTarget())));
if (!tempDrawContext) {
failed = true;
break;
@@ -258,7 +258,7 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context
paint3.addColorFragmentProcessor(pmToUPM2);
paint3.setPorterDuffXPFactory(SkXfermode::kSrc_Mode);
- readDrawContext.reset(context->drawContext(readTex->asRenderTarget()));
+ readDrawContext = context->drawContext(sk_ref_sp(readTex->asRenderTarget()));
if (!readDrawContext) {
failed = true;
break;

Powered by Google App Engine
This is Rietveld 408576698