summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/GradientAndroid.cpp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2011-02-22 14:00:57 -0500
committerDerek Sollenberger <djsollen@google.com>2011-02-22 14:36:48 -0500
commitb33016812afef21c69df5ab3d5b85eab5fef7c5c (patch)
tree0f08eed2e423d84b8e8582e3e44ff759cd493a6e /WebCore/platform/graphics/android/GradientAndroid.cpp
parente248a68aa5529c1e5faba09893cf079b0657d898 (diff)
downloadexternal_webkit-b33016812afef21c69df5ab3d5b85eab5fef7c5c.zip
external_webkit-b33016812afef21c69df5ab3d5b85eab5fef7c5c.tar.gz
external_webkit-b33016812afef21c69df5ab3d5b85eab5fef7c5c.tar.bz2
Skia Merge (revision 808)
This is a companion CL to the one found in /external/skia Change-Id: I469b8845a88f24d972fd57ee5c9cab505a5b83aa
Diffstat (limited to 'WebCore/platform/graphics/android/GradientAndroid.cpp')
-rw-r--r--WebCore/platform/graphics/android/GradientAndroid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/GradientAndroid.cpp b/WebCore/platform/graphics/android/GradientAndroid.cpp
index 72ae336..b8dc9dd 100644
--- a/WebCore/platform/graphics/android/GradientAndroid.cpp
+++ b/WebCore/platform/graphics/android/GradientAndroid.cpp
@@ -38,7 +38,7 @@
class PlatformGradientRec {
public:
PlatformGradientRec() : m_shader(NULL) {}
- ~PlatformGradientRec() { m_shader->safeUnref(); }
+ ~PlatformGradientRec() { SkSafeUnref(m_shader); }
SkShader* m_shader;
SkShader::TileMode m_tileMode;
@@ -102,7 +102,7 @@ SkShader* Gradient::getShader(SkShader::TileMode mode)
s = new SkColorShader(0);
// zap our previous shader, if present
- m_gradient->m_shader->safeUnref();
+ SkSafeUnref(m_gradient->m_shader);
m_gradient->m_shader = s;
m_gradient->m_tileMode = mode;
SkMatrix matrix = m_gradientSpaceTransformation;