Herb Derby | 41f4f31 | 2018-06-06 17:45:53 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 The Android Open Source Project |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "SkGlyphRun.h" |
| 9 | |
| 10 | #include "Test.h" |
| 11 | |
| 12 | DEF_TEST(GlyphRunInfo, reporter) { |
| 13 | SkGlyphID glyphs[] = {100, 3, 240, 3, 234, 111, 3, 4, 10, 11}; |
| 14 | uint16_t count = SK_ARRAY_COUNT(glyphs); |
| 15 | |
| 16 | SkPaint paint; |
| 17 | paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); |
| 18 | |
Herb Derby | 59d997a | 2018-06-07 12:44:09 -0400 | [diff] [blame] | 19 | SkGlyphRunBuilder builder; |
| 20 | builder.prepareDrawText(paint, glyphs, count, SkPoint::Make(0, 0)); |
Herb Derby | 4ffa027 | 2018-06-04 15:49:15 -0400 | [diff] [blame] | 21 | |
Herb Derby | 41f4f31 | 2018-06-06 17:45:53 +0000 | [diff] [blame] | 22 | } |