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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp

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/fonts/FontPlatformData.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp b/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
index e6f42cb4a1f9505f00dca43dee4d939932aa7e01..4e04a93877fd3ef5546b7d6a3cbc62e24e77410a 100644
--- a/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
@@ -131,7 +131,7 @@ FontPlatformData::FontPlatformData(const FontPlatformData& src, float textSize)
#endif
}
-FontPlatformData::FontPlatformData(PassRefPtr<SkTypeface> tf,
+FontPlatformData::FontPlatformData(sk_sp<SkTypeface> tf,
const char* family, float textSize, bool syntheticBold,
bool syntheticItalic, FontOrientation orientation)
: m_typeface(tf)
f(malita) 2016/09/01 03:55:38 std::move(tf)
Łukasz Anforowicz 2016/09/01 20:50:57 Ooops - thanks for catching this. Done.

Powered by Google App Engine
This is Rietveld 408576698