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

Unified Diff: Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp

Issue 860383006: Stop using SkAutoTUnref on SkStream. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp
diff --git a/Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp b/Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp
index 3be7d1910b6c2101381eacddb0f805006d9a2f7a..cf6530a590d1a7e86983e58a63bc589e94c9f092 100644
--- a/Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp
+++ b/Source/platform/fonts/mac/FontCustomPlatformDataMac.cpp
@@ -63,8 +63,7 @@ PassOwnPtr<FontCustomPlatformData> FontCustomPlatformData::create(SharedBuffer*
if (!cgFontRef)
return nullptr;
- SkAutoTUnref<SkMemoryStream> stream(new SkMemoryStream(buffer->getAsSkData().get()));
- RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get()));
+ RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(new SkMemoryStream(buffer->getAsSkData().get())));
if (!typeface)
return nullptr;
« no previous file with comments | « no previous file | Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698