Index: tools/debugger/SkDrawCommand.cpp |
diff --git a/tools/debugger/SkDrawCommand.cpp b/tools/debugger/SkDrawCommand.cpp |
index 4a88fa1b33142c582ecb502955bfde18e79d3a5e..b95a9b89d1753c785db85a0296535669e1501301 100644 |
--- a/tools/debugger/SkDrawCommand.cpp |
+++ b/tools/debugger/SkDrawCommand.cpp |
@@ -1214,8 +1214,7 @@ static void extract_json_paint_typeface(Json::Value& jsonPaint, UrlDataManager& |
const void* data; |
Json::ArrayIndex length = decode_data(jsonData, urlDataManager, &data); |
SkMemoryStream buffer(data, length); |
- SkTypeface* typeface = SkTypeface::Deserialize(&buffer); |
- target->setTypeface(typeface); |
+ target->setTypeface(SkTypeface::MakeDeserialize(&buffer)); |
} |
} |