Index: bench/SKPBench.cpp |
diff --git a/bench/SKPBench.cpp b/bench/SKPBench.cpp |
index c5480904053dbfd98cce060e1860f3bc366f3e61..6f4c688d231ff61c0de6ddad82537a2c6496dc4a 100644 |
--- a/bench/SKPBench.cpp |
+++ b/bench/SKPBench.cpp |
@@ -157,6 +157,7 @@ void SKPBench::drawPicture() { |
} |
#if SK_SUPPORT_GPU |
+#include "GrGpu.h" |
static void draw_pic_for_stats(SkCanvas* canvas, GrContext* context, const SkPicture* picture, |
SkTArray<SkString>* keys, SkTArray<double>* values, |
const char* tag) { |
@@ -186,6 +187,7 @@ void SKPBench::getGpuStats(SkCanvas* canvas, SkTArray<SkString>* keys, SkTArray< |
context->flush(); |
context->freeGpuResources(); |
context->resetContext(); |
+ context->getGpu()->resetShaderCacheForTesting(); |
draw_pic_for_stats(canvas, context, fPic, keys, values, "first_frame"); |
// draw second frame |