From b33016812afef21c69df5ab3d5b85eab5fef7c5c Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Tue, 22 Feb 2011 14:00:57 -0500 Subject: Skia Merge (revision 808) This is a companion CL to the one found in /external/skia Change-Id: I469b8845a88f24d972fd57ee5c9cab505a5b83aa --- WebCore/platform/graphics/android/GradientAndroid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'WebCore/platform/graphics/android/GradientAndroid.cpp') 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; -- cgit v1.1