Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index 038044d56182cea4962944cb88d97d5e852c371c..fe720b832cbe4403fae6738e2364cc3749d3820a 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -698,8 +698,6 @@ void SkGradientShaderBase::toString(SkString* str) const { |
/////////////////////////////////////////////////////////////////////////////// |
/////////////////////////////////////////////////////////////////////////////// |
-#include "SkEmptyShader.h" |
- |
// assumes colors is SkColor* and pos is SkScalar* |
#define EXPAND_1_COLOR(count) \ |
SkColor tmp[2]; \ |
@@ -790,7 +788,7 @@ SkShader* SkGradientShader::CreateTwoPointConical(const SkPoint& start, |
return NULL; |
} |
if (start == end && startRadius == endRadius) { |
- return SkNEW(SkEmptyShader); |
+ return SkShader::CreateEmptyShader(); |
} |
EXPAND_1_COLOR(colorCount); |