bookmaker nightly fix

replace SkPaint::kGlyphID_TextEncoding with kGlyphID_SkTextEncoding

NOTRY=true
TBR=reed@google.com

Docs-Preview: https://skia.org/?cl=175340
Bug: skia:
Change-Id: I5835bf2d45969b727d9c895d34d7adb7c15b251c
Reviewed-on: https://skia-review.googlesource.com/c/175340
Commit-Queue: Cary Clark <caryclark@skia.org>
Auto-Submit: Cary Clark <caryclark@skia.org>
Reviewed-by: Cary Clark <caryclark@skia.org>
This commit is contained in:
Cary Clark 2018-12-06 12:57:29 -05:00 committed by Skia Commit-Bot
parent 1de014057c
commit 1c23557b6e
3 changed files with 4 additions and 4 deletions

View File

@ -105,7 +105,7 @@ blob equals nullptr
sk_sp<SkTextBlob> blob = builder.make();
SkDebugf("blob " "%s" " nullptr\n", blob == nullptr ? "equals" : "does not equal");
SkPaint paint;
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
paint.setTextEncoding(kGlyphID_SkTextEncoding);
SkFont font;
paint.textToGlyphs("x", 1, builder.allocRun(font, 1, 20, 20).glyphs);
blob = builder.make();

View File

@ -151,7 +151,7 @@ reused to build a new set of runs.
### Example
<div><fiddle-embed name="a6b09a31f2877ba813c6a4e9e3fef1fa">
<div><fiddle-embed name="34c37c0212cc0aef670d96945d08fe24">
#### Example Output

View File

@ -3564,8 +3564,8 @@
"stdout": "blob equals nullptr"
},
"SkTextBlobBuilder_make": {
"code": "void draw(SkCanvas* canvas) {\n SkTextBlobBuilder builder;\n sk_sp<SkTextBlob> blob = builder.make();\n SkDebugf(\"blob \" \"%s\" \" nullptr\\n\", blob == nullptr ? \"equals\" : \"does not equal\");\n SkPaint paint;\n paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);\n SkFont font;\n paint.textToGlyphs(\"x\", 1, builder.allocRun(font, 1, 20, 20).glyphs);\n blob = builder.make();\n SkDebugf(\"blob \" \"%s\" \" nullptr\\n\", blob == nullptr ? \"equals\" : \"does not equal\");\n blob = builder.make();\n SkDebugf(\"blob \" \"%s\" \" nullptr\\n\", blob == nullptr ? \"equals\" : \"does not equal\");\n}",
"hash": "a6b09a31f2877ba813c6a4e9e3fef1fa",
"code": "void draw(SkCanvas* canvas) {\n SkTextBlobBuilder builder;\n sk_sp<SkTextBlob> blob = builder.make();\n SkDebugf(\"blob \" \"%s\" \" nullptr\\n\", blob == nullptr ? \"equals\" : \"does not equal\");\n SkPaint paint;\n paint.setTextEncoding(kGlyphID_SkTextEncoding);\n SkFont font;\n paint.textToGlyphs(\"x\", 1, builder.allocRun(font, 1, 20, 20).glyphs);\n blob = builder.make();\n SkDebugf(\"blob \" \"%s\" \" nullptr\\n\", blob == nullptr ? \"equals\" : \"does not equal\");\n blob = builder.make();\n SkDebugf(\"blob \" \"%s\" \" nullptr\\n\", blob == nullptr ? \"equals\" : \"does not equal\");\n}",
"hash": "34c37c0212cc0aef670d96945d08fe24",
"file": "SkTextBlobBuilder_Reference",
"name": "SkTextBlobBuilder::make()",
"stdout": "blob equals nullptr\\nblob does not equal nullptr\\nblob equals nullptr\\n"