Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: tools/Resources.cpp

Issue 1146273003: suppress chatty warning about Funkster.ttf not be supported (on mac at least) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/Resources.cpp
diff --git a/tools/Resources.cpp b/tools/Resources.cpp
index 4c3db1e90c0dfd2f9c8bf8653c8100f4c796f556..608b03cff650a07acc2410b1eaeb7ddaa052d7b1 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());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698