aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/Resources.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-06-01 12:51:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-01 12:51:24 -0700
commit933d9863dd4d6d6acdd024d90969110a286e1656 (patch)
treeb5bf5e06cc5209fa56c58790a766dcb33af8ba9e /tools/Resources.cpp
parent4f61fee53af956a8beb4c56fa6479cb6b1aa5159 (diff)
suppress chatty warning about Funkster.ttf not be supported (on mac at least)
Diffstat (limited to 'tools/Resources.cpp')
-rw-r--r--tools/Resources.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/Resources.cpp b/tools/Resources.cpp
index 4c3db1e90c..608b03cff6 100644
--- a/tools/Resources.cpp
+++ b/tools/Resources.cpp
@@ -46,9 +46,5 @@ SkTypeface* GetResourceAsTypeface(const char* resource) {
if (!stream) {
return NULL;
}
- SkAutoTUnref<SkTypeface> typeface(SkTypeface::CreateFromStream(stream.detach()));
- if (!typeface) {
- SkDebugf("Resource %s not a valid font.\n", resource);
- }
- return typeface.detach();
+ return SkTypeface::CreateFromStream(stream.detach());
}