Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/BoxReflection.h |
| diff --git a/third_party/WebKit/Source/platform/graphics/BoxReflection.h b/third_party/WebKit/Source/platform/graphics/BoxReflection.h |
| index f22482fb633660c4ffd0e4d6f6743af571d3b841..e866e27bf61f098c5cfb89acf23f851de0354d02 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/BoxReflection.h |
| +++ b/third_party/WebKit/Source/platform/graphics/BoxReflection.h |
| @@ -7,8 +7,7 @@ |
| #include "platform/PlatformExport.h" |
| #include "third_party/skia/include/core/SkPicture.h" |
| -#include "wtf/PassRefPtr.h" |
| -#include "wtf/RefPtr.h" |
| +#include "third_party/skia/include/core/SkRefCnt.h" |
| class SkImageFilter; |
| class SkMatrix; |
| @@ -33,7 +32,7 @@ public: |
| HorizontalReflection, |
| }; |
| - BoxReflection(ReflectionDirection direction, float offset, PassRefPtr<SkPicture> mask = nullptr) |
| + BoxReflection(ReflectionDirection direction, float offset, sk_sp<SkPicture> mask = nullptr) |
| : m_direction(direction), m_offset(offset), m_mask(mask) {} |
|
f(malita)
2016/09/01 03:55:38
std::move(mask)
Łukasz Anforowicz
2016/09/01 20:50:58
Done.
|
| ReflectionDirection direction() const { return m_direction; } |
| @@ -54,7 +53,7 @@ public: |
| private: |
| ReflectionDirection m_direction; |
| float m_offset; |
| - RefPtr<SkPicture> m_mask; |
| + sk_sp<SkPicture> m_mask; |
| }; |
| inline bool operator==(const BoxReflection& a, const BoxReflection& b) |