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

Unified Diff: third_party/WebKit/Source/platform/fonts/WebFontDecoder.h

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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/WebFontDecoder.h
diff --git a/third_party/WebKit/Source/platform/fonts/WebFontDecoder.h b/third_party/WebKit/Source/platform/fonts/WebFontDecoder.h
index ff2d6a8f0d744bf2cde9961bb72e6d3502991426..6cbef4b2f66763002efc8ceed90ad57d09328e52 100644
--- a/third_party/WebKit/Source/platform/fonts/WebFontDecoder.h
+++ b/third_party/WebKit/Source/platform/fonts/WebFontDecoder.h
@@ -31,9 +31,9 @@
#ifndef WebFontDecoder_h
#define WebFontDecoder_h
+#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/include/core/SkTypeface.h"
#include "wtf/Allocator.h"
-#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -47,7 +47,7 @@ public:
{
}
- PassRefPtr<SkTypeface> decode(SharedBuffer*);
+ sk_sp<SkTypeface> decode(SharedBuffer*);
static bool supportsFormat(const String&);
String getErrorString() const { return m_otsErrorString; }
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/TextBlob.h ('k') | third_party/WebKit/Source/platform/fonts/WebFontDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698