gm missed portable text in textblobshader

TBR=reed@google.com

Review URL: https://codereview.chromium.org/1263593004
This commit is contained in:
caryclark 2015-07-28 11:55:49 -07:00 committed by Commit bot
parent d12e6ffa5c
commit efa1ece07e

View File

@ -20,6 +20,7 @@ class TextBlobShaderGM : public skiagm::GM {
public:
TextBlobShaderGM(const char* txt) {
SkPaint p;
sk_tool_utils::set_portable_typeface(&p);
size_t txtLen = strlen(txt);
fGlyphs.append(p.textToGlyphs(txt, txtLen, NULL));
p.textToGlyphs(txt, txtLen, fGlyphs.begin());