diff options
author | bsalomon <bsalomon@google.com> | 2015-02-13 14:20:05 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-13 14:20:05 -0800 |
commit | 3582d3ee9fffdec715f5e4949a241ab08e6271ec (patch) | |
tree | eab9709bbe8c4d00cd11fb987654cfb9e51acc65 /src/gpu/GrGpu.cpp | |
parent | 4ccce7ea618fd9557a6d5cfa29c1fd6b015c7580 (diff) |
Split out methods in GrGpuResource::CacheAccess that can be called outside of the cache.
Review URL: https://codereview.chromium.org/923143002
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r-- | src/gpu/GrGpu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index d23d4524a9..eef965e5b6 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -12,6 +12,7 @@ #include "GrBufferAllocPool.h" #include "GrContext.h" #include "GrDrawTargetCaps.h" +#include "GrGpuResourcePriv.h" #include "GrIndexBuffer.h" #include "GrResourceCache.h" #include "GrStencilBuffer.h" @@ -72,7 +73,7 @@ GrTexture* GrGpu::createTexture(const GrSurfaceDesc& desc, bool budgeted, } } if (!this->caps()->reuseScratchTextures() && !isRT) { - tex->cacheAccess().removeScratchKey(); + tex->resourcePriv().removeScratchKey(); } if (tex) { fStats.incTextureCreates(); |