| Index: src/gpu/GrYUVProvider.cpp
|
| diff --git a/src/gpu/GrYUVProvider.cpp b/src/gpu/GrYUVProvider.cpp
|
| index 13e84dad75b147aab4ac22fac837df0521d9d5fb..a86e6616b0e398b1da96a6947aa289a07f08512c 100644
|
| --- a/src/gpu/GrYUVProvider.cpp
|
| +++ b/src/gpu/GrYUVProvider.cpp
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "GrContext.h"
|
| #include "GrRenderTargetContext.h"
|
| +#include "GrTextureProxy.h"
|
| #include "GrYUVProvider.h"
|
| #include "effects/GrGammaEffect.h"
|
| #include "effects/GrYUVEffect.h"
|
| @@ -149,5 +150,6 @@ sk_sp<GrTexture> GrYUVProvider::refAsTexture(GrContext* ctx,
|
|
|
| renderTargetContext->drawRect(GrNoClip(), paint, SkMatrix::I(), r);
|
|
|
| - return renderTargetContext->asTexture();
|
| + sk_sp<GrTextureProxy> tp(renderTargetContext->asDeferredTexture());
|
| + return sk_ref_sp(tp->instantiate(ctx->textureProvider()));
|
| }
|
|
|