Index: src/gpu/GrTest.cpp |
=================================================================== |
--- src/gpu/GrTest.cpp (revision 12709) |
+++ src/gpu/GrTest.cpp (working copy) |
@@ -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(); |
+} |