Skip to content

Commit

Permalink
use sk_sp<SkData> instead of SkData* (flutter#3021)
Browse files Browse the repository at this point in the history
(skia change 42943c8)
  • Loading branch information
mikejurka authored Sep 12, 2016
1 parent 0fe462d commit 12fc138
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ PassOwnPtr<FontCustomPlatformData> FontCustomPlatformData::create(SharedBuffer*
{
ASSERT_ARG(buffer, buffer);

SkMemoryStream* stream = new SkMemoryStream(buffer->getAsSkData().get());
SkMemoryStream* stream = new SkMemoryStream(buffer->getAsSkData());
sk_sp<SkTypeface> typeface = SkTypeface::MakeFromStream(stream);
if (!typeface)
return nullptr;
Expand Down

0 comments on commit 12fc138

Please sign in to comment.