aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-10-30 11:34:15 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-30 11:34:15 -0700
commitf037e0bf138a4e842f39e19864d05010a54950c9 (patch)
tree8065bc69d569ef1deba83f6797412343510474cb /src/gpu
parent6374f57d77044b4c9260e50f7983d6f418e852d5 (diff)
allow SkUserConfig.h to control NOGPU
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/SkGpuDevice.cpp4
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