diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-18 17:25:33 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-18 17:25:33 +0000 |
commit | 94d8f1ed6116780346ffa39ed683f1977786434a (patch) | |
tree | 5f7659d24be080dba118030b0d1c72d93ee26b20 /src/gpu | |
parent | d20f9b7358a82b43bf04b049a8cd031331563baf (diff) |
Update bench pictures to time image decode & upload costs
https://codereview.chromium.org/117583002/
git-svn-id: http://skia.googlecode.com/svn/trunk@12742 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp index 934f089f3d..c434322c6f 100644 --- a/src/gpu/GrTest.cpp +++ b/src/gpu/GrTest.cpp @@ -9,6 +9,7 @@ #include "GrTest.h" #include "GrGpu.h" +#include "GrResourceCache.h" void GrTestTarget::init(GrContext* ctx, GrDrawTarget* target) { SkASSERT(!fContext); @@ -35,3 +36,7 @@ void GrContext::getTestTarget(GrTestTarget* tar) { void GrContext::setMaxTextureSizeOverride(int maxTextureSizeOverride) { fMaxTextureSizeOverride = maxTextureSizeOverride; } + +void GrContext::purgeAllUnlockedResources() { + fTextureCache->purgeAllUnlocked(); +} |