Index: third_party/WebKit/Source/platform/graphics/Pattern.h |
diff --git a/third_party/WebKit/Source/platform/graphics/Pattern.h b/third_party/WebKit/Source/platform/graphics/Pattern.h |
index c2068ea9b0d91b8f1d3e562842fd01488c1d9506..a855cca9e6e6e879cd6a76b36514c60c256556b0 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Pattern.h |
+++ b/third_party/WebKit/Source/platform/graphics/Pattern.h |
@@ -32,11 +32,11 @@ |
#include "platform/PlatformExport.h" |
#include "platform/graphics/Image.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" |
class SkPaint; |
class SkPicture; |
@@ -71,7 +71,7 @@ public: |
virtual bool isTextureBacked() const { return false; } |
protected: |
- virtual PassRefPtr<SkShader> createShader() = 0; |
+ virtual sk_sp<SkShader> createShader() = 0; |
void adjustExternalMemoryAllocated(int64_t delta); |
@@ -81,7 +81,7 @@ protected: |
Pattern(RepeatMode, int64_t externalMemoryAllocated = 0); |
private: |
- RefPtr<SkShader> m_pattern; |
+ sk_sp<SkShader> m_pattern; |
int64_t m_externalMemoryAllocated; |
}; |