summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WebCore/platform/graphics/android/GradientAndroid.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/WebCore/platform/graphics/android/GradientAndroid.cpp b/WebCore/platform/graphics/android/GradientAndroid.cpp
index 5e3ddef..72ae336 100644
--- a/WebCore/platform/graphics/android/GradientAndroid.cpp
+++ b/WebCore/platform/graphics/android/GradientAndroid.cpp
@@ -90,9 +90,11 @@ SkShader* Gradient::getShader(SkShader::TileMode mode)
SkShader* s;
if (m_radial)
- // FIXME: SVG always passes 0 for m_r0
- s = SkGradientShader::CreateRadial(pts[0],
- SkFloatToScalar(m_r0 ? m_r0 : m_r1), colors, pos, count, mode);
+ s = SkGradientShader::CreateTwoPointRadial(pts[0],
+ SkFloatToScalar(m_r0),
+ pts[1],
+ SkFloatToScalar(m_r1),
+ colors, pos, count, mode);
else
s = SkGradientShader::CreateLinear(pts, colors, pos, count, mode);