diff options
author | 2014-03-19 21:19:16 +0000 | |
---|---|---|
committer | 2014-03-19 21:19:16 +0000 | |
commit | d8a57af725e8fa8905207df3cf7465be50598752 (patch) | |
tree | 031131651c13db23570e5a69a495b02322e394d9 /src/gpu/GrContext.cpp | |
parent | b9c95978c614e8f6bc00bdf565cff57388d8c659 (diff) |
Adding a new SkSurface factory for generating surfaces from the scratch texture pool.
TEST=Surface unit test
BUG=crbug.com/351798
R=bsalomon@google.com, robertphillips@google.com, reed@google.com
Author: junov@chromium.org
Review URL: https://codereview.chromium.org/201153023
git-svn-id: http://skia.googlecode.com/svn/trunk@13864 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rw-r--r-- | src/gpu/GrContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index c7e3433938..c480a1f718 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -220,6 +220,10 @@ size_t GrContext::getGpuTextureCacheBytes() const { return fTextureCache->getCachedResourceBytes(); } +int GrContext::getGpuTextureCacheResourceCount() const { + return fTextureCache->getCachedResourceCount(); +} + //////////////////////////////////////////////////////////////////////////////// GrTexture* GrContext::findAndRefTexture(const GrTextureDesc& desc, |