blob: 3b25625a7ad40d6485cbde9069e2e23c2df307a4 [file] [log] [blame]
Herb Derby41f4f312018-06-06 17:45:53 +00001/*
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
12DEF_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 Derby59d997a2018-06-07 12:44:09 -040019 SkGlyphRunBuilder builder;
20 builder.prepareDrawText(paint, glyphs, count, SkPoint::Make(0, 0));
Herb Derby4ffa0272018-06-04 15:49:15 -040021
Herb Derby41f4f312018-06-06 17:45:53 +000022}