use default to fix warning (or I will shoot myself)

git-svn-id: http://skia.googlecode.com/svn/trunk@14096 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2014-04-08 16:57:05 +00:00
parent 43d6d80b49
commit 6719d60485

View File

@ -98,7 +98,8 @@ int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding enc
case kUTF32_SkTextEncoding:
typeface_encoding = SkTypeface::kUTF32_Encoding;
break;
case kGlyphID_SkTextEncoding:
default:
SkASSERT(kGlyphID_SkTextEncoding == encoding);
// we can early exit, since we already have glyphIDs
memcpy(glyphs, text, count << 1);
return count;