Home
last modified time | relevance | path

Searched refs:gText (Results 1 – 7 of 7) sorted by relevance

/external/skia/tests/
DStreamBufferTest.cpp16 static const char* gText = "Four score and seven years ago"; variable
23 REPORTER_ASSERT(r, !memcmp(data->data(), gText + position, length)); in test_get_data_at_position()
38 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, buffered)); in test_buffer_from_beginning()
45 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, length)); in test_buffer_from_beginning()
61 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText + position, step)); in test_flushing()
76 const size_t size = strlen(gText); in DEF_TEST()
77 sk_sp<SkData> data(SkData::MakeWithoutCopy(gText, size)); in DEF_TEST()
90 writer.write(gText, size); in DEF_TEST()
123 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, 5)); in DEF_TEST()
128 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, 14)); in DEF_TEST()
[all …]
/external/skqp/tests/
DStreamBufferTest.cpp17 static const char* gText = "Four score and seven years ago"; variable
24 REPORTER_ASSERT(r, !memcmp(data->data(), gText + position, length)); in test_get_data_at_position()
39 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, buffered)); in test_buffer_from_beginning()
46 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, length)); in test_buffer_from_beginning()
62 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText + position, step)); in test_flushing()
77 const size_t size = strlen(gText); in DEF_TEST()
78 sk_sp<SkData> data(SkData::MakeWithoutCopy(gText, size)); in DEF_TEST()
91 writer.write(gText, size); in DEF_TEST()
122 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, 5)); in DEF_TEST()
127 REPORTER_ASSERT(r, !memcmp(buffer.get(), gText, 14)); in DEF_TEST()
[all …]
/external/skia/gm/
Ddrawglyphs.cpp18 static const char gText[] = "Call me Ishmael. Some years ago—never mind how long precisely"; variable
27 const size_t txtLen = strlen(gText); in onOnceBeforeDraw()
28 fGlyphCount = fFont.countText(gText, txtLen, SkTextEncoding::kUTF8); in onOnceBeforeDraw()
31 fFont.textToGlyphs(gText, txtLen, SkTextEncoding::kUTF8, fGlyphs.begin(), fGlyphCount); in onOnceBeforeDraw()
/external/skia/bench/
DGlyphQuadFillBench.cpp23 static const char* gText = variable
40 size_t len = strlen(gText); in onPerCanvasPreDraw()
43 auto glyphRunList = builder.textToGlyphRunList(font, paint, gText, len, {100, 100}); in onPerCanvasPreDraw()
/external/skqp/samplecode/
DSampleTextBox.cpp34 static const char gText[] = variable
86 SkPoint end = shaper.shape(&builder, font, gText, strlen(gText), true, in drawTest()
DSampleBitmapRect.cpp155 static const char gText[] = in make_big_bitmap() local
167 …const int BIG_W = SkScalarRoundToInt(font.measureText(gText, strlen(gText), kUTF8_SkTextEncoding)); in make_big_bitmap()
174 …canvas.drawSimpleText(gText, strlen(gText), kUTF8_SkTextEncoding, 0, font.getSize()*4/5, font, SkP… in make_big_bitmap()
/external/skia/samplecode/
DSampleTextBox.cpp29 static const char gText[] = variable
60 SkTextBlobBuilderRunHandler builder(gText, { margin, margin }); in drawTest()
65 const char* utf8 = gText; in drawTest()
66 size_t utf8Bytes = sizeof(gText) - 1; in drawTest()