| Index: src/gpu/GrTextureParamsAdjuster.cpp
|
| diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp
|
| index 43bfec84631d65b3ad0eaf2ac6bcc916c7d6a9bd..d8673d9df934fe8039cc3393bf3ff0a57293dd37 100644
|
| --- a/src/gpu/GrTextureParamsAdjuster.cpp
|
| +++ b/src/gpu/GrTextureParamsAdjuster.cpp
|
| @@ -17,6 +17,7 @@
|
| #include "GrTexture.h"
|
| #include "GrTextureParams.h"
|
| #include "GrTextureProvider.h"
|
| +#include "GrTextureProxy.h"
|
| #include "SkCanvas.h"
|
| #include "SkGr.h"
|
| #include "SkGrPriv.h"
|
| @@ -85,7 +86,8 @@ static GrTexture* copy_on_gpu(GrTexture* inputTexture, const SkIRect* subset,
|
|
|
| SkRect dstRect = SkRect::MakeIWH(copyParams.fWidth, copyParams.fHeight);
|
| copyRTC->fillRectToRect(GrNoClip(), paint, SkMatrix::I(), dstRect, localRect);
|
| - return copyRTC->asTexture().release();
|
| + sk_sp<GrTextureProxy> tp(copyRTC->asDeferredTexture());
|
| + return SkRef(tp->instantiate(context->textureProvider()));
|
| }
|
|
|
| GrTextureAdjuster::GrTextureAdjuster(GrTexture* original, SkAlphaType alphaType,
|
|
|