diff options
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 0dc626cd66..35c3ab532d 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 |