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
diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp
index 934f089..c434322 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::setMaxTextureSizeOverride(int maxTextureSizeOverride) {
fMaxTextureSizeOverride = maxTextureSizeOverride;
}
+
+void GrContext::purgeAllUnlockedResources() {
+ fTextureCache->purgeAllUnlocked();
+}