Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(979)

Unified Diff: third_party/WebKit/Source/platform/graphics/BoxReflection.h

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Self-review. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698