Modified GrGpuGL_unittest to no longer use the old constructors to create gradients, also added TwoPointConical to the tests.
Review URL: https://codereview.appspot.com/6452068
git-svn-id: http://skia.googlecode.com/svn/trunk@4860 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp
index 6bec70f..f0eb7fb 100644
--- a/src/effects/gradients/SkGradientShader.cpp
+++ b/src/effects/gradients/SkGradientShader.cpp
@@ -642,6 +642,7 @@
if (start == end && startRadius == endRadius) {
return SkNEW(SkEmptyShader);
}
+ EXPAND_1_COLOR(colorCount);
return SkNEW_ARGS(SkTwoPointConicalGradient,
(start, startRadius, end, endRadius, colors, pos,