Home
last modified time | relevance | path

Searched refs:ToolUtils (Results 1 – 25 of 240) sorted by relevance

12345678910

/external/skia/tests/
DTopoSortTest.cpp14 typedef void (*CreateGraphPF)(SkTArray<sk_sp<ToolUtils::TopoTestNode>>* graph);
25 static void create_graph0(SkTArray<sk_sp<ToolUtils::TopoTestNode>>* graph) { in create_graph0()
26 ToolUtils::TopoTestNode::AllocNodes(graph, 4); in create_graph0()
46 static void create_graph1(SkTArray<sk_sp<ToolUtils::TopoTestNode>>* graph) { in create_graph1()
47 ToolUtils::TopoTestNode::AllocNodes(graph, 4); in create_graph1()
61 static void create_graph2(SkTArray<sk_sp<ToolUtils::TopoTestNode>>* graph) { in create_graph2()
62 ToolUtils::TopoTestNode::AllocNodes(graph, 3); in create_graph2()
84 static void create_graph3(SkTArray<sk_sp<ToolUtils::TopoTestNode>>* graph) { in create_graph3()
85 ToolUtils::TopoTestNode::AllocNodes(graph, 7); in create_graph3()
107 static void create_graph4(SkTArray<sk_sp<ToolUtils::TopoTestNode>>* graph) { in create_graph4()
[all …]
DReadWritePixelsGpuTest.cpp282 ToolUtils::colortype_name(srcCT), ToolUtils::alphatype_name(srcAT), in gpu_read_pixels_test_driver()
283 ToolUtils::colortype_name(readCT), ToolUtils::alphatype_name(readAT), in gpu_read_pixels_test_driver()
332 ToolUtils::colortype_name(srcCT), ToolUtils::alphatype_name(srcAT), in gpu_read_pixels_test_driver()
333 ToolUtils::colortype_name(readCT), ToolUtils::alphatype_name(readAT), in gpu_read_pixels_test_driver()
380 ToolUtils::colortype_name(srcCT), ToolUtils::colortype_name(readCT), in gpu_read_pixels_test_driver()
851 ToolUtils::colortype_name(writeCT), ToolUtils::alphatype_name(writeAT), in gpu_write_pixels_test_driver()
852 ToolUtils::colortype_name(dstCT), ToolUtils::alphatype_name(dstAT), in gpu_write_pixels_test_driver()
870 ToolUtils::colortype_name(dstCT), in gpu_write_pixels_test_driver()
871 ToolUtils::alphatype_name(dstAT)); in gpu_write_pixels_test_driver()
898 ToolUtils::colortype_name(writeCT), in gpu_write_pixels_test_driver()
[all …]
/external/skia/gm/
Dtextblobrandomfont.cpp59 auto typeface = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
69 ToolUtils::add_to_text_blob(&builder, text, font, 0, y); in onOnceBeforeDraw()
80 ToolUtils::add_to_text_blob(&builder, bigtext1, font, 0, y); in onOnceBeforeDraw()
85 ToolUtils::add_to_text_blob(&builder, bigtext2, font, 0, y); in onOnceBeforeDraw()
89 if (sk_sp<SkTypeface> origEmoji = ToolUtils::emoji_typeface()) { in onOnceBeforeDraw()
91 const char* emojiText = ToolUtils::emoji_sample_text(); in onOnceBeforeDraw()
94 ToolUtils::add_to_text_blob(&builder, emojiText, font, 0, y); in onOnceBeforeDraw()
122 auto surface(ToolUtils::makeSurface(canvas, info, &props)); in onDraw()
Dfontcache.cpp62 fTypefaces[0] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
63 fTypefaces[1] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
64 fTypefaces[2] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
65 fTypefaces[3] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
66 fTypefaces[4] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
67 fTypefaces[5] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
Dbmpfilterqualityrepeat.cpp30 BmpFilterQualityRepeat() { this->setBGColor(ToolUtils::color_to_565(0xFFCCBBAA)); } in BmpFilterQualityRepeat()
41 colorBmp.eraseColor(ToolUtils::color_to_565(0xFF008200)); in onOnceBeforeDraw()
43 colorBmp.eraseColor(ToolUtils::color_to_565(0xFFFF9000)); in onOnceBeforeDraw()
45 colorBmp.eraseColor(ToolUtils::color_to_565(0xFF2000FF)); in onOnceBeforeDraw()
83 SkFont font(ToolUtils::create_portable_typeface()); in drawAll()
Ddisplacement.cpp39 fImage = ToolUtils::create_string_image(80, 80, 0xFF884422, 15, 55, 96, "g"); in onOnceBeforeDraw()
41 SkColor c1 = ToolUtils::color_to_565(0xFF244484); in onOnceBeforeDraw()
42 SkColor c2 = ToolUtils::color_to_565(0xFF804020); in onOnceBeforeDraw()
44 fCheckerboard = ToolUtils::create_checkerboard_image(80, 80, c1, c2, 8); in onOnceBeforeDraw()
45 fSmall = ToolUtils::create_checkerboard_image(64, 64, c1, c2, 8); in onOnceBeforeDraw()
46 fLarge = ToolUtils::create_checkerboard_image(96, 96, c1, c2, 8); in onOnceBeforeDraw()
47 fLargeW = ToolUtils::create_checkerboard_image(96, 64, c1, c2, 8); in onOnceBeforeDraw()
48 fLargeH = ToolUtils::create_checkerboard_image(64, 96, c1, c2, 8); in onOnceBeforeDraw()
Dtextblobmixedsizes.cpp52 ToolUtils::add_to_text_blob(&builder, text, font, 0, 0); in onOnceBeforeDraw()
60 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
67 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
74 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
81 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
88 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
Dmixedtextblobs.cpp51 fEmojiTypeface = ToolUtils::planet_typeface(); in onOnceBeforeDraw()
59 SkFont font(ToolUtils::create_portable_typeface(), 385); in onOnceBeforeDraw()
67 ToolUtils::add_to_text_blob(&builder, text, font, 10, yOffset); in onOnceBeforeDraw()
83 ToolUtils::add_to_text_blob(&builder, in onOnceBeforeDraw()
95 ToolUtils::add_to_text_blob(&builder, fEmojiText, font, xOffset, yOffset); in onOnceBeforeDraw()
102 ToolUtils::add_to_text_blob(&builder, text, font, corruptedAx, corruptedAy); in onOnceBeforeDraw()
Dscaledemoji.cpp50 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
51 fEmojiFont.fText = ToolUtils::emoji_sample_text(); in onOnceBeforeDraw()
99 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
100 fEmojiFont.fText = ToolUtils::emoji_sample_text(); in onOnceBeforeDraw()
157 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
158 fEmojiFont.fText = ToolUtils::emoji_sample_text(); in onOnceBeforeDraw()
Dtextblobgeometrychange.cpp43 SkFont font(ToolUtils::create_portable_typeface(), 20); in onDraw()
48 ToolUtils::add_to_text_blob(&builder, text, font, 10, 10); in onDraw()
54 auto surface = ToolUtils::makeSurface(canvas, info, &props); in onDraw()
Dandroidblendmodes.cpp51 p.setColor(ToolUtils::color_to_565(kBlue)); in onOnceBeforeDraw()
61 p.setColor(ToolUtils::color_to_565(kRed)); in onOnceBeforeDraw()
80 SkFont font(ToolUtils::create_portable_typeface()); in onDraw()
82 ToolUtils::draw_checkerboard(canvas, kWhite, kGrey, 32); in onDraw()
Dvariedtext.cpp67 fTypefaces[0] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle()); in onOnceBeforeDraw()
68 fTypefaces[1] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
69 fTypefaces[2] = ToolUtils::create_portable_typeface("serif", SkFontStyle()); in onOnceBeforeDraw()
70 fTypefaces[3] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
83 fColors[i] = ToolUtils::color_to_565(fColors[i]); in onOnceBeforeDraw()
Dall_bitmap_configs.cpp40 ToolUtils::copy_to(&copy, colorType, *srcPtr); in copy_bitmap()
96 font.setTypeface(ToolUtils::create_portable_typeface(nullptr, SkFontStyle::Bold())); in color_wheel_native()
133 SkFont font(ToolUtils::create_portable_typeface());
135 ToolUtils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8);
182 SkAssertResult(ToolUtils::copy_to(&notN32bitmap, ct, n32bitmap)); in make_not_native32_color_wheel()
190 ToolUtils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8); in DEF_SIMPLE_GM()
239 ToolUtils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8);
Dconvexpolyclip.cpp44 ToolUtils::color_to_565(0xFF222255), in make_img()
45 ToolUtils::color_to_565(0xFF331133), in make_img()
46 ToolUtils::color_to_565(0xFF884422), in make_img()
47 ToolUtils::color_to_565(0xFF000022), in make_img()
49 ToolUtils::color_to_565(0xFFAABBCC)}; in make_img()
75 SkFont font(ToolUtils::create_portable_typeface(), wScalar / 2.2f); in make_img()
163 SkFont font(ToolUtils::create_portable_typeface(), 23); in onDraw()
Dtextblobcolortrans.cpp40 SkFont font(ToolUtils::create_portable_typeface(), 256); in onOnceBeforeDraw()
48 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset - 30); in onOnceBeforeDraw()
54 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset - 8); in onOnceBeforeDraw()
Dgetpostextpath.cpp40 font.setTypeface(ToolUtils::create_portable_typeface());
49 ToolUtils::get_text_path(font, text, len, SkTextEncoding::kUTF8, &path, nullptr);
70 ToolUtils::get_text_path(font, text, len, SkTextEncoding::kUTF8, &path, &pos[0]);
Dcoloremoji_blendmodes.cpp58 sk_sp<SkTypeface> orig(ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold())); in onOnceBeforeDraw()
62 fColorType = ToolUtils::emoji_typeface(); in onOnceBeforeDraw()
118 SkFont labelFont(ToolUtils::create_portable_typeface()); in onDraw()
147 const char* text = ToolUtils::emoji_sample_text(); in onDraw()
Dxfermodes.cpp105 p.setColor(ToolUtils::color_to_565(0xFFFFCC44)); in make_bitmaps()
115 p.setColor(ToolUtils::color_to_565(0xFF66AAFF)); in make_bitmaps()
163 p.setColor(ToolUtils::color_to_565(0xFF66AAFF)); in draw_mode()
167 p.setColor(ToolUtils::color_to_565(0xFFAA66FF)); in draw_mode()
186 p.setColor(ToolUtils::color_to_565(0xFF66AAFF)); in draw_mode()
246 SkFont font(ToolUtils::create_portable_typeface()); in onDraw()
Dtextblobtransforms.cpp36 SkFont font(ToolUtils::create_portable_typeface(), 162); in onOnceBeforeDraw()
42 ToolUtils::add_to_text_blob(&builder, text, font, 0, 0); in onOnceBeforeDraw()
48 ToolUtils::add_to_text_blob(&builder, text, font, xOffset, 0); in onOnceBeforeDraw()
56 ToolUtils::add_to_text_blob(&builder, text, font, xOffset, -yOffset - 10); in onOnceBeforeDraw()
Dbitmapfilters.cpp62 SkFont font(ToolUtils::create_portable_typeface()); in draw_row()
63 const char* name = ToolUtils::colortype_name(img->colorType()); in draw_row()
80 ToolUtils::copy_to(&bm4444, kARGB_4444_SkColorType, bm32); in onOnceBeforeDraw()
81 ToolUtils::copy_to(&bm565, kRGB_565_SkColorType, bm32); in onOnceBeforeDraw()
Dquadpaths.cpp95 SkFont font(ToolUtils::create_portable_typeface(), 15); in onDraw()
96 SkFont labelFont(ToolUtils::create_portable_typeface(), 10); in onDraw()
122 SkColor color = ToolUtils::color_to_565(0xff007000); in onDraw()
226 SkFont font(ToolUtils::create_portable_typeface(), 15); in onDraw()
227 SkFont labelFont(ToolUtils::create_portable_typeface(), 10); in onDraw()
252 SkColor color = ToolUtils::color_to_565(0xff007000); in onDraw()
Dgradtext.cpp68 SkFont font(ToolUtils::create_portable_typeface(), 500); in onDraw()
83 SkFont font(ToolUtils::create_portable_typeface()); in onDraw()
107 SkFont font(ToolUtils::create_portable_typeface(), kTextSize);
Dimageblur.cpp31 SkFont font(ToolUtils::create_portable_typeface()); in imageblurgm_draw()
35 textPaint.setColor(ToolUtils::color_to_565(rand.nextBits(24) | 0xFF000000)); in imageblurgm_draw()
Dscaledemoji_rendering.cpp39 typefaces[3] = ToolUtils::create_portable_typeface("Emoji", SkFontStyle()); in onOnceBeforeDraw()
58 const char* text = ToolUtils::emoji_sample_text(); in onDraw()
/external/skia/bench/
DTopoSortBench.cpp33 ToolUtils::TopoTestNode::AllocNodes(&fGraph, kNumElements); in onDelayedSetup()
52 ToolUtils::TopoTestNode::Shuffle(&fGraph, &fRand); in onDraw()
54 SkDEBUGCODE(bool actualResult =) GrTTopoSort<ToolUtils::TopoTestNode>(&fGraph); in onDraw()
69 SkTArray<sk_sp<ToolUtils::TopoTestNode>> fGraph;

12345678910