Enable the GPU-based blur by default in Skia, and provide a #define to disable
it (SK_DISABLE_GPU_BLUR).
Note: this change will break some the GM test results. I've attempted to
rebaseline MacPro float results; more to come.
Review URL: http://codereview.appspot.com/4784043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1901 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 90ab4bb..cc669fe 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -47,7 +47,6 @@
};
-#define USE_GPU_BLUR 0
#define MAX_BLUR_SIGMA 4.0f
// FIXME: This value comes from from SkBlurMaskFilter.cpp.
// Should probably be put in a common header someplace.
@@ -844,7 +843,7 @@
SkMaskFilter* filter, const SkMatrix& matrix,
const SkRegion& clip, SkBounder* bounder,
GrPaint* grp) {
-#if !USE_GPU_BLUR
+#ifdef SK_DISABLE_GPU_BLUR
return false;
#endif
SkMaskFilter::BlurInfo info;