diff options
-rw-r--r-- | src/gpu/GrResourceProvider.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp index cb23e38bbc..d50bb01f86 100644 --- a/src/gpu/GrResourceProvider.cpp +++ b/src/gpu/GrResourceProvider.cpp @@ -187,6 +187,10 @@ sk_sp<GrTexture> GrResourceProvider::createApproxTexture(const GrSurfaceDesc& de return nullptr; } + if (auto tex = this->refScratchTexture(desc, flags)) { + return tex; + } + SkTCopyOnFirstWrite<GrSurfaceDesc> copyDesc(desc); // bin by pow2 with a reasonable min |