Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 0dc626cd6668e866f621474363eb777519b9d990..35c3ab532db5308bdaf27c904491d725c85bbf5a 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -43,6 +43,8 @@ |
#include "SkXfermode.h" |
#include "SkErrorInternals.h" |
+#if SK_SUPPORT_GPU |
+ |
enum { kDefaultImageFilterCacheSize = 32 * 1024 * 1024 }; |
#define CACHE_COMPATIBLE_DEVICE_TEXTURES 1 |
@@ -1855,3 +1857,5 @@ SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() { |
// filter traversal. |
return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize); |
} |
+ |
+#endif |