diff options
author | reed <reed@google.com> | 2015-06-01 12:51:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-01 12:51:24 -0700 |
commit | 933d9863dd4d6d6acdd024d90969110a286e1656 (patch) | |
tree | b5bf5e06cc5209fa56c58790a766dcb33af8ba9e | |
parent | 4f61fee53af956a8beb4c56fa6479cb6b1aa5159 (diff) |
suppress chatty warning about Funkster.ttf not be supported (on mac at least)
BUG=skia:
Review URL: https://codereview.chromium.org/1146273003
-rw-r--r-- | tools/Resources.cpp | 6 |
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()); } |