Index: third_party/WebKit/Source/platform/graphics/Gradient.h |
diff --git a/third_party/WebKit/Source/platform/graphics/Gradient.h b/third_party/WebKit/Source/platform/graphics/Gradient.h |
index 49e0f740ab84df171045dfcd1c74eab573fa7e70..0a43ecb364333810374df26ec320335a6c24179a 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Gradient.h |
+++ b/third_party/WebKit/Source/platform/graphics/Gradient.h |
@@ -34,10 +34,10 @@ |
#include "platform/graphics/Color.h" |
#include "platform/graphics/GraphicsTypes.h" |
#include "platform/transforms/AffineTransform.h" |
+#include "third_party/skia/include/core/SkRefCnt.h" |
#include "wtf/Noncopyable.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
-#include "wtf/RefPtr.h" |
#include "wtf/Vector.h" |
class SkPaint; |
@@ -126,7 +126,7 @@ private: |
Gradient(const FloatPoint& p0, const FloatPoint& p1); |
Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio); |
- SkShader* shader(); |
+ sk_sp<SkShader> shader(); |
void destroyShader(); |
void sortStopsIfNecessary(); |
@@ -143,7 +143,7 @@ private: |
GradientSpreadMethod m_spreadMethod; |
AffineTransform m_gradientSpaceTransformation; |
- RefPtr<SkShader> m_gradient; |
+ sk_sp<SkShader> m_gradient; |
}; |
} // namespace blink |