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

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

Issue 2066323002: Remove SK_SUPPORT_LEGACY_TYPEFACE_PTR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Mac fixes Created 4 years, 6 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.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/WebFontDecoder.cpp b/third_party/WebKit/Source/platform/fonts/WebFontDecoder.cpp
index 06dc6cc8edadaaebf9851b6ed9c4cb3ddf9d2bc8..ff9ce7c2f3cf223c48a6c656d8f365f26496a3f3 100644
--- a/third_party/WebKit/Source/platform/fonts/WebFontDecoder.cpp
+++ b/third_party/WebKit/Source/platform/fonts/WebFontDecoder.cpp
@@ -34,6 +34,7 @@
#include "platform/SharedBuffer.h"
#include "platform/TraceEvent.h"
#include "platform/fonts/FontCache.h"
+#include "platform/graphics/skia/SkiaUtils.h"
#include "public/platform/Platform.h"
#include "third_party/harfbuzz-ng/src/hb.h"
#include "third_party/ots/include/ots-memory-stream.h"
@@ -191,7 +192,7 @@ PassRefPtr<SkTypeface> WebFontDecoder::decode(SharedBuffer* buffer)
#if OS(WIN)
RefPtr<SkTypeface> typeface = adoptRef(FontCache::fontCache()->fontManager()->createFromStream(stream));
#else
- RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream));
+ RefPtr<SkTypeface> typeface = fromSkSp(SkTypeface::MakeFromStream(stream));
#endif
if (!typeface) {
setErrorString("Not a valid font data");

Powered by Google App Engine
This is Rietveld 408576698