Index: bench/ImageCacheBudgetBench.cpp |
diff --git a/bench/ImageCacheBudgetBench.cpp b/bench/ImageCacheBudgetBench.cpp |
index 32804bae13a45191e62f5ae3f2d7bf2e7b4a7d7e..11b4c50968f489270d881d99390f37c066ee1290 100644 |
--- a/bench/ImageCacheBudgetBench.cpp |
+++ b/bench/ImageCacheBudgetBench.cpp |
@@ -6,12 +6,15 @@ |
*/ |
#include "Benchmark.h" |
-#include "GrContext.h" |
#include "sk_tool_utils.h" |
#include "SkCanvas.h" |
#include "SkImage.h" |
#include "SkSurface.h" |
+#if SK_SUPPORT_GPU |
+ |
+#include "GrContext.h" |
+ |
/** These benchmarks were designed to measure changes to GrResourceCache's replacement policy */ |
////////////////////////////////////////////////////////////////////////////// |
@@ -255,3 +258,5 @@ private: |
DEF_BENCH( return new ImageCacheBudgetDynamicBench(ImageCacheBudgetDynamicBench::Mode::kPingPong); ) |
DEF_BENCH( return new ImageCacheBudgetDynamicBench(ImageCacheBudgetDynamicBench::Mode::kFlipFlop); ) |
+ |
+#endif |