aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/SkObjectParser.cpp
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-08 02:01:29 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-08 02:01:29 +0000
commit4e8ef337bc2343a7ed422558106dccfc0d073bde (patch)
treee9ec922369d72ab53f6aa62e223107c12f3b091b /debugger/SkObjectParser.cpp
parent89d15a28b52faed37b1bda1fbcdd1afae4bae457 (diff)
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7072 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'debugger/SkObjectParser.cpp')
-rw-r--r--debugger/SkObjectParser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/debugger/SkObjectParser.cpp b/debugger/SkObjectParser.cpp
index b327c0b090..f382664ac2 100644
--- a/debugger/SkObjectParser.cpp
+++ b/debugger/SkObjectParser.cpp
@@ -105,16 +105,16 @@ SkString* SkObjectParser::PaintToString(const SkPaint& paint) {
SkString* mPaint = new SkString("<dl><dt>SkPaint:</dt><dd><dl><dt>Color:</dt><dd>0x");
mPaint->appendHex(color);
mPaint->append("</dd>");
-
+
SkTypeface *typeface = paint.getTypeface();
if (typeface) {
SkDynamicMemoryWStream ostream;
typeface->serialize(&ostream);
SkData *data = SkAutoTUnref<SkData>(ostream.copyToData());
-
+
SkMemoryStream stream(data);
SkFontDescriptor descriptor(&stream);
-
+
mPaint->append("<dt>Font Family Name:</dt><dd>");
mPaint->append(descriptor.getFamilyName());
mPaint->append("</dd><dt>Font Full Name:</dt><dd>");