| Index: src/gpu/effects/GrConfigConversionEffect.cpp
|
| diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp
|
| index 3f68268b2017869fe0b2ee5b2a19d5cc012ab3d3..042e5f8047658e2ab1f4e42e05274cce4983c7bd 100644
|
| --- a/src/gpu/effects/GrConfigConversionEffect.cpp
|
| +++ b/src/gpu/effects/GrConfigConversionEffect.cpp
|
| @@ -226,7 +226,7 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context
|
| paint1.addColorFragmentProcessor(pmToUPM1);
|
|
|
|
|
| - GrDrawContext* readDrawContext = context->drawContext();
|
| + SkAutoTUnref<GrDrawContext> readDrawContext(context->drawContext());
|
| if (!readDrawContext) {
|
| failed = true;
|
| break;
|
| @@ -243,7 +243,7 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context
|
|
|
| paint2.addColorFragmentProcessor(upmToPM);
|
|
|
| - GrDrawContext* tempDrawContext = context->drawContext();
|
| + SkAutoTUnref<GrDrawContext> tempDrawContext(context->drawContext());
|
| if (!tempDrawContext) {
|
| failed = true;
|
| break;
|
| @@ -257,7 +257,7 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context
|
|
|
| paint3.addColorFragmentProcessor(pmToUPM2);
|
|
|
| - readDrawContext = context->drawContext();
|
| + readDrawContext.reset(context->drawContext());
|
| if (!readDrawContext) {
|
| failed = true;
|
| break;
|
|
|