diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-07-01 17:00:03 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-07-01 17:00:03 +0000 |
commit | ab840b81a9833bbdeb49af59833d5c707e15143d (patch) | |
tree | 3fc71f54c9b0cf511a46dbbb468323b9d4363a64 /src | |
parent | bff8e29eaf23a625879f6acf1fbea46a18fcbd9a (diff) |
remove (ack) test code in lineargradient when pos array is null
git-svn-id: http://skia.googlecode.com/svn/trunk@247 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/effects/SkGradientShader.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/effects/SkGradientShader.cpp b/src/effects/SkGradientShader.cpp index e1a92ba3bf..0891a37dd4 100644 --- a/src/effects/SkGradientShader.cpp +++ b/src/effects/SkGradientShader.cpp @@ -1563,14 +1563,8 @@ SkShader* SkGradientShader::CreateLinear( const SkPoint pts[2], } EXPAND_1_COLOR(colorCount); - SkScalar posStorage[2]; - if (colorCount == 2 && pos == NULL) { - posStorage[0] = SK_Scalar1/4; - posStorage[1] = 3*SK_Scalar1/4; - pos = posStorage; - } - - return SkNEW_ARGS(Linear_Gradient, (pts, colors, pos, colorCount, mode, mapper)); + return SkNEW_ARGS(Linear_Gradient, + (pts, colors, pos, colorCount, mode, mapper)); } SkShader* SkGradientShader::CreateRadial( const SkPoint& center, SkScalar radius, @@ -1582,7 +1576,8 @@ SkShader* SkGradientShader::CreateRadial( const SkPoint& center, SkScalar radi } EXPAND_1_COLOR(colorCount); - return SkNEW_ARGS(Radial_Gradient, (center, radius, colors, pos, colorCount, mode, mapper)); + return SkNEW_ARGS(Radial_Gradient, + (center, radius, colors, pos, colorCount, mode, mapper)); } SkShader* SkGradientShader::CreateSweep(SkScalar cx, SkScalar cy, |