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

Unified Diff: sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp

Issue 863253002: Update from https://crrev.com/312600 (Closed) Base URL: https://github.com/domokit/mojo.git@master
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
Index: sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp
diff --git a/sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp b/sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp
index c675bc0830d24afb22232c4536c49cb9ac197561..dd0434308caaf871c6db534cd47c36f7951c161b 100644
--- a/sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp
+++ b/sky/engine/platform/fonts/skia/FontCustomPlatformDataSkia.cpp
@@ -69,8 +69,8 @@ PassOwnPtr<FontCustomPlatformData> FontCustomPlatformData::create(SharedBuffer*
return nullptr; // validation failed.
buffer = transcodeBuffer.get();
- RefPtr<SkMemoryStream> stream = adoptRef(new SkMemoryStream(buffer->getAsSkData().get()));
- RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream.get()));
+ SkMemoryStream* stream = new SkMemoryStream(buffer->getAsSkData().get());
+ RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromStream(stream));
if (!typeface)
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698