diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-11 18:50:45 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-11 18:50:45 +0000 |
commit | fab44db294846ff05d837b9cf0bf97a073891da7 (patch) | |
tree | 76bba06175f7c85f25c22779149e1355f9bd1f9c /tests/FontNamesTest.cpp | |
parent | dcb4e65998913bfb2cc7e331ffacf0965bdee0ea (diff) |
Clean up SkTypes.h.
This change removes sk_stdint.h since it is only needed for vs2008 and earlier.
This change removes SK_MMAP_SUPPORT define since it is no longer used.
This change removes the stdio.h include from SkTypes.h since on many systems
this is a very large header, few Skia files actually use it, it is
available everywhere standard, and SkDebugf should be used instead.
After this change there is no need for external users to put Skia's
include/config into their own list of includes, saving the headache
of having two header files of the same name and sometimes getting the
wrong one depending on include order.
R=bsalomon@google.com, djsollen@google.com
Review URL: https://codereview.chromium.org/27044002
git-svn-id: http://skia.googlecode.com/svn/trunk@11738 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/FontNamesTest.cpp')
-rw-r--r-- | tests/FontNamesTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/FontNamesTest.cpp b/tests/FontNamesTest.cpp index 210a7cf310..42d9ca9f51 100644 --- a/tests/FontNamesTest.cpp +++ b/tests/FontNamesTest.cpp @@ -161,7 +161,7 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { SkString familyName; typeface->getFamilyName(&familyName); if (verbose) { - printf("[%s]\n", familyName.c_str()); + SkDebugf("[%s]\n", familyName.c_str()); } SkAutoTUnref<SkTypeface::LocalizedStrings> familyNamesIter( @@ -169,7 +169,7 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { SkTypeface::LocalizedString familyNameLocalized; while (familyNamesIter->next(&familyNameLocalized)) { if (verbose) { - printf("(%s) <%s>\n", familyNameLocalized.fString.c_str(), + SkDebugf("(%s) <%s>\n", familyNameLocalized.fString.c_str(), familyNameLocalized.fLanguage.c_str()); } } @@ -193,7 +193,7 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { "Requested family name, got something else." ); if (verbose) { - printf("{%s} <%s>\n", record.name.c_str(), record.language.c_str()); + SkDebugf("{%s} <%s>\n", record.name.c_str(), record.language.c_str()); } } @@ -205,12 +205,12 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { "Requested subfamily name, got something else." ); if (verbose) { - printf("{{%s}} <%s>\n", record.name.c_str(), record.language.c_str()); + SkDebugf("{{%s}} <%s>\n", record.name.c_str(), record.language.c_str()); } } if (verbose) { - printf("\n"); + SkDebugf("\n"); } } } |