| Index: src/gpu/GrContext.cpp
|
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
|
| index 7012988ab8ec4cb61715dac284ba38ec145806ae..e7449da23b6ed73b222fd854ca9ce80f89eb4e93 100755
|
| --- a/src/gpu/GrContext.cpp
|
| +++ b/src/gpu/GrContext.cpp
|
| @@ -490,7 +490,13 @@ GrTexture* GrContext::createUncachedTexture(const GrSurfaceDesc& descIn,
|
| void* srcData,
|
| size_t rowBytes) {
|
| GrSurfaceDesc descCopy = descIn;
|
| - return fGpu->createTexture(descCopy, srcData, rowBytes);
|
| + GrTexture* texture = fGpu->createTexture(descCopy, srcData, rowBytes);
|
| + if (texture) {
|
| + // TODO: It'd be nice to be able to do this before creation so we don't boot something
|
| + // out of the cache. We could temporarily boost the cache budget.
|
| + texture->cacheAccess().setBudgeted(false);
|
| + }
|
| + return texture;
|
| }
|
|
|
| void GrContext::getResourceCacheLimits(int* maxTextures, size_t* maxTextureBytes) const {
|
|
|