OSDN Git Service
(root)
/
android-x86
/
external-webkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0e0daa
)
use twopoint gradients
author
Mike Reed
<reed@google.com>
Tue, 8 Dec 2009 19:15:05 +0000
(14:15 -0500)
committer
Mike Reed
<reed@google.com>
Tue, 8 Dec 2009 19:15:05 +0000
(14:15 -0500)
WebCore/platform/graphics/android/GradientAndroid.cpp
patch
|
blob
|
history
diff --git
a/WebCore/platform/graphics/android/GradientAndroid.cpp
b/WebCore/platform/graphics/android/GradientAndroid.cpp
index
5e3ddef
..
72ae336
100644
(file)
--- 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);