aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-18 17:25:33 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-18 17:25:33 +0000
commit94d8f1ed6116780346ffa39ed683f1977786434a (patch)
tree5f7659d24be080dba118030b0d1c72d93ee26b20 /src/gpu
parentd20f9b7358a82b43bf04b049a8cd031331563baf (diff)
Update bench pictures to time image decode & upload costs
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrTest.cpp5
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();
+}