OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkPaintParts.h" | 10 #include "SkPaintParts.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 bool SkDrawTypeface::add() { | 86 bool SkDrawTypeface::add() { |
87 if (fPaint->typeface != (SkDrawTypeface*) -1) | 87 if (fPaint->typeface != (SkDrawTypeface*) -1) |
88 return true; | 88 return true; |
89 fPaint->typeface = this; | 89 fPaint->typeface = this; |
90 fPaint->fOwnsTypeface = true; | 90 fPaint->fOwnsTypeface = true; |
91 return false; | 91 return false; |
92 } | 92 } |
93 | 93 |
94 #ifdef SK_DUMP_ENABLED | 94 #ifdef SK_DUMP_ENABLED |
95 void SkDrawTypeface::dump(SkAnimateMaker* maker) { | 95 void SkDrawTypeface::dump(SkAnimateMaker*) { |
96 SkDebugf("%*s<typeface fontName=\"%s\" ", SkDisplayList::fIndent, "", fontNa
me.c_str()); | 96 SkDebugf("%*s<typeface fontName=\"%s\" ", SkDisplayList::fIndent, "", fontNa
me.c_str()); |
97 SkString string; | 97 SkString string; |
98 SkDump::GetEnumString(SkType_FontStyle, style, &string); | 98 SkDump::GetEnumString(SkType_FontStyle, style, &string); |
99 SkDebugf("style=\"%s\" />\n", string.c_str()); | 99 SkDebugf("style=\"%s\" />\n", string.c_str()); |
100 } | 100 } |
101 #endif | 101 #endif |
OLD | NEW |