Home
last modified time | relevance | path

Searched refs:sk_tool_utils (Results 1 – 25 of 434) sorted by relevance

12345678910>>...18

/external/skqp/tests/
DTopoSortTest.cpp14 typedef void (*CreateGraphPF)(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph);
23 static void create_graph0(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph0()
24 sk_tool_utils::TopoTestNode::AllocNodes(graph, 4); in create_graph0()
41 static void create_graph1(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph1()
42 sk_tool_utils::TopoTestNode::AllocNodes(graph, 4); in create_graph1()
54 static void create_graph2(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph2()
55 sk_tool_utils::TopoTestNode::AllocNodes(graph, 3); in create_graph2()
73 static void create_graph3(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph3()
74 sk_tool_utils::TopoTestNode::AllocNodes(graph, 7); in create_graph3()
94 static void create_graph4(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph4()
[all …]
/external/skia/tests/
DTopoSortTest.cpp14 typedef void (*CreateGraphPF)(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph);
23 static void create_graph0(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph0()
24 sk_tool_utils::TopoTestNode::AllocNodes(graph, 4); in create_graph0()
41 static void create_graph1(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph1()
42 sk_tool_utils::TopoTestNode::AllocNodes(graph, 4); in create_graph1()
54 static void create_graph2(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph2()
55 sk_tool_utils::TopoTestNode::AllocNodes(graph, 3); in create_graph2()
73 static void create_graph3(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph3()
74 sk_tool_utils::TopoTestNode::AllocNodes(graph, 7); in create_graph3()
94 static void create_graph4(SkTArray<sk_sp<sk_tool_utils::TopoTestNode>>* graph) { in create_graph4()
[all …]
/external/skia/gm/
Dtextblobrandomfont.cpp45 auto typeface = sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
55 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, y); in onOnceBeforeDraw()
66 sk_tool_utils::add_to_text_blob(&builder, bigtext1, font, 0, y); in onOnceBeforeDraw()
71 sk_tool_utils::add_to_text_blob(&builder, bigtext2, font, 0, y); in onOnceBeforeDraw()
75 if (sk_sp<SkTypeface> origEmoji = sk_tool_utils::emoji_typeface()) { in onOnceBeforeDraw()
77 const char* emojiText = sk_tool_utils::emoji_sample_text(); in onOnceBeforeDraw()
80 sk_tool_utils::add_to_text_blob(&builder, emojiText, font, 0, y); in onOnceBeforeDraw()
107 auto surface(sk_tool_utils::makeSurface(canvas, info, &props)); in onDraw()
Dfontcache.cpp54 fTypefaces[0] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
55 fTypefaces[1] = sk_tool_utils::create_portable_typeface("sans-serif",SkFontStyle::Italic()); in onOnceBeforeDraw()
56 fTypefaces[2] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
58 sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
59 fTypefaces[4] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
60 fTypefaces[5] = sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
Dmixedtextblobs.cpp43 fEmojiTypeface = sk_tool_utils::emoji_typeface(); in onOnceBeforeDraw()
44 fEmojiText = sk_tool_utils::emoji_sample_text(); in onOnceBeforeDraw()
51 SkFont font(sk_tool_utils::create_portable_typeface(), 385); in onOnceBeforeDraw()
59 sk_tool_utils::add_to_text_blob(&builder, text, font, 10, yOffset); in onOnceBeforeDraw()
75 sk_tool_utils::add_to_text_blob(&builder, text, font, xOffset - bounds.width() * 0.25f, in onOnceBeforeDraw()
86 sk_tool_utils::add_to_text_blob(&builder, text, font, xOffset - bounds.width() * 0.3f, in onOnceBeforeDraw()
94 sk_tool_utils::add_to_text_blob(&builder, text, font, corruptedAx, corruptedAy); in onOnceBeforeDraw()
Dbmpfilterqualityrepeat.cpp18 BmpFilterQualityRepeat() { this->setBGColor(sk_tool_utils::color_to_565(0xFFCCBBAA)); } in BmpFilterQualityRepeat()
29 colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFF008200)); in onOnceBeforeDraw()
31 colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFFFF9000)); in onOnceBeforeDraw()
33 colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFF2000FF)); in onOnceBeforeDraw()
71 SkFont font(sk_tool_utils::create_portable_typeface()); in drawAll()
Ddisplacement.cpp28 fBitmap = sk_tool_utils::create_string_bitmap(80, 80, 0xFF884422, 15, 55, 96, "g"); in onOnceBeforeDraw()
30 SkColor c1 = sk_tool_utils::color_to_565(0xFF244484); in onOnceBeforeDraw()
31 SkColor c2 = sk_tool_utils::color_to_565(0xFF804020); in onOnceBeforeDraw()
34 sk_tool_utils::create_checkerboard_bitmap(80, 80, c1, c2, 8)); in onOnceBeforeDraw()
36 sk_tool_utils::create_checkerboard_bitmap(64, 64, c1, c2, 8)); in onOnceBeforeDraw()
38 sk_tool_utils::create_checkerboard_bitmap(96, 96, c1, c2, 8)); in onOnceBeforeDraw()
40 SkImage::MakeFromBitmap(sk_tool_utils::create_checkerboard_bitmap(96, 64, c1, c2, 8)); in onOnceBeforeDraw()
42 sk_tool_utils::create_checkerboard_bitmap(64, 96, c1, c2, 8)); in onOnceBeforeDraw()
Dtextblobmixedsizes.cpp40 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, 0); in onOnceBeforeDraw()
48 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
55 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
62 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
69 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
76 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
Datlastext.cpp79 fTypefaces[0] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
81 sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
82 fTypefaces[2] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
84 sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
85 fTypefaces[4] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
86 fTypefaces[5] = sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
Dlightingshader.cpp20 sk_tool_utils::create_hemi_normal_map(&hemi, SkIRect::MakeWH(texSize, texSize)); in make_hemi_normalmap()
29 sk_tool_utils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap()
38 sk_tool_utils::create_tetra_normal_map(&tetra, SkIRect::MakeWH(texSize, texSize)); in make_tetra_normalmap()
81 fDiffuse = sk_tool_utils::create_checkerboard_bitmap( in onOnceBeforeDraw()
84 sk_tool_utils::color_to_565(0xFF804020), in onOnceBeforeDraw()
Dall_bitmap_configs.cpp26 sk_tool_utils::copy_to(&copy, colorType, *srcPtr); in copy_bitmap()
86 font.setTypeface(sk_tool_utils::create_portable_typeface(nullptr, SkFontStyle::Bold())); in color_wheel_native()
124 SkFont font(sk_tool_utils::create_portable_typeface());
126 sk_tool_utils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8);
173 SkAssertResult(sk_tool_utils::copy_to(&notN32bitmap, ct, n32bitmap)); in make_not_native32_color_wheel()
181 sk_tool_utils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8); in DEF_SIMPLE_GM()
231 sk_tool_utils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8);
Dconvexpolyclip.cpp30 sk_tool_utils::color_to_565(0xFF222255), in make_bmp()
31 sk_tool_utils::color_to_565(0xFF331133), in make_bmp()
32 sk_tool_utils::color_to_565(0xFF884422), in make_bmp()
33 sk_tool_utils::color_to_565(0xFF000022), SK_ColorWHITE, in make_bmp()
34 sk_tool_utils::color_to_565(0xFFAABBCC) }; in make_bmp()
60 SkFont font(sk_tool_utils::create_portable_typeface(), wScalar / 2.2f); in make_bmp()
153 SkFont font(sk_tool_utils::create_portable_typeface(), 23); in onDraw()
/external/skqp/gm/
Dtextblobrandomfont.cpp45 auto typeface = sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
55 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, y); in onOnceBeforeDraw()
66 sk_tool_utils::add_to_text_blob(&builder, bigtext1, font, 0, y); in onOnceBeforeDraw()
71 sk_tool_utils::add_to_text_blob(&builder, bigtext2, font, 0, y); in onOnceBeforeDraw()
75 if (sk_sp<SkTypeface> origEmoji = sk_tool_utils::emoji_typeface()) { in onOnceBeforeDraw()
77 const char* emojiText = sk_tool_utils::emoji_sample_text(); in onOnceBeforeDraw()
80 sk_tool_utils::add_to_text_blob(&builder, emojiText, font, 0, y); in onOnceBeforeDraw()
111 auto surface(sk_tool_utils::makeSurface(canvas, info, &props)); in onDraw()
Dmixedtextblobs.cpp43 fEmojiTypeface = sk_tool_utils::emoji_typeface(); in onOnceBeforeDraw()
44 fEmojiText = sk_tool_utils::emoji_sample_text(); in onOnceBeforeDraw()
51 SkFont font(sk_tool_utils::create_portable_typeface(), 385); in onOnceBeforeDraw()
59 sk_tool_utils::add_to_text_blob(&builder, text, font, 10, yOffset); in onOnceBeforeDraw()
75 sk_tool_utils::add_to_text_blob(&builder, text, font, xOffset - bounds.width() * 0.25f, in onOnceBeforeDraw()
86 sk_tool_utils::add_to_text_blob(&builder, text, font, xOffset - bounds.width() * 0.3f, in onOnceBeforeDraw()
94 sk_tool_utils::add_to_text_blob(&builder, text, font, corruptedAx, corruptedAy); in onOnceBeforeDraw()
100 sk_tool_utils::platform_font_manager()); in onShortName()
Dfontcache.cpp54 fTypefaces[0] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
55 fTypefaces[1] = sk_tool_utils::create_portable_typeface("sans-serif",SkFontStyle::Italic()); in onOnceBeforeDraw()
56 fTypefaces[2] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
58 sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
59 fTypefaces[4] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
60 fTypefaces[5] = sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
Dtextblobmixedsizes.cpp40 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, 0); in onOnceBeforeDraw()
48 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
55 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
62 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
69 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
76 sk_tool_utils::add_to_text_blob(&builder, text, font, 0, yOffset); in onOnceBeforeDraw()
84 sk_tool_utils::platform_font_manager(), in onShortName()
Dscaledemoji.cpp43 fEmojiFont.fTypeface = sk_tool_utils::emoji_typeface(); in onOnceBeforeDraw()
44 fEmojiFont.fText = sk_tool_utils::emoji_sample_text(); in onOnceBeforeDraw()
49 name.append(sk_tool_utils::platform_font_manager()); in onShortName()
95 fEmojiFont.fTypeface = sk_tool_utils::emoji_typeface(); in onOnceBeforeDraw()
96 fEmojiFont.fText = sk_tool_utils::emoji_sample_text(); in onOnceBeforeDraw()
101 name.append(sk_tool_utils::platform_font_manager()); in onShortName()
Dbmpfilterqualityrepeat.cpp18 BmpFilterQualityRepeat() { this->setBGColor(sk_tool_utils::color_to_565(0xFFCCBBAA)); } in BmpFilterQualityRepeat()
29 colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFF008200)); in onOnceBeforeDraw()
31 colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFFFF9000)); in onOnceBeforeDraw()
33 colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFF2000FF)); in onOnceBeforeDraw()
71 SkFont font(sk_tool_utils::create_portable_typeface()); in drawAll()
Ddisplacement.cpp28 fBitmap = sk_tool_utils::create_string_bitmap(80, 80, 0xFF884422, 15, 55, 96, "g"); in onOnceBeforeDraw()
30 SkColor c1 = sk_tool_utils::color_to_565(0xFF244484); in onOnceBeforeDraw()
31 SkColor c2 = sk_tool_utils::color_to_565(0xFF804020); in onOnceBeforeDraw()
34 sk_tool_utils::create_checkerboard_bitmap(80, 80, c1, c2, 8)); in onOnceBeforeDraw()
36 sk_tool_utils::create_checkerboard_bitmap(64, 64, c1, c2, 8)); in onOnceBeforeDraw()
38 sk_tool_utils::create_checkerboard_bitmap(96, 96, c1, c2, 8)); in onOnceBeforeDraw()
40 SkImage::MakeFromBitmap(sk_tool_utils::create_checkerboard_bitmap(96, 64, c1, c2, 8)); in onOnceBeforeDraw()
42 sk_tool_utils::create_checkerboard_bitmap(64, 96, c1, c2, 8)); in onOnceBeforeDraw()
Datlastext.cpp79 fTypefaces[0] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
81 sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Italic()); in onOnceBeforeDraw()
82 fTypefaces[2] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
84 sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Normal()); in onOnceBeforeDraw()
85 fTypefaces[4] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
86 fTypefaces[5] = sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); in onOnceBeforeDraw()
Dcoloremoji_blendmodes.cpp53 sk_sp<SkTypeface> orig(sk_tool_utils::create_portable_typeface("serif", in onOnceBeforeDraw()
58 fColorType = sk_tool_utils::emoji_typeface(); in onOnceBeforeDraw()
66 name.append(sk_tool_utils::platform_font_manager()); in onShortName()
117 SkFont labelFont(sk_tool_utils::create_portable_typeface()); in onDraw()
146 const char* text = sk_tool_utils::emoji_sample_text(); in onDraw()
Dlightingshader.cpp20 sk_tool_utils::create_hemi_normal_map(&hemi, SkIRect::MakeWH(texSize, texSize)); in make_hemi_normalmap()
29 sk_tool_utils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap()
38 sk_tool_utils::create_tetra_normal_map(&tetra, SkIRect::MakeWH(texSize, texSize)); in make_tetra_normalmap()
81 fDiffuse = sk_tool_utils::create_checkerboard_bitmap( in onOnceBeforeDraw()
84 sk_tool_utils::color_to_565(0xFF804020), in onOnceBeforeDraw()
Dall_bitmap_configs.cpp26 sk_tool_utils::copy_to(&copy, colorType, *srcPtr); in copy_bitmap()
86 font.setTypeface(sk_tool_utils::create_portable_typeface(nullptr, SkFontStyle::Bold())); in color_wheel_native()
124 SkFont font(sk_tool_utils::create_portable_typeface());
126 sk_tool_utils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8);
174 SkAssertResult(sk_tool_utils::copy_to(&notN32bitmap, ct, n32bitmap)); in make_not_native32_color_wheel()
182 sk_tool_utils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8); in DEF_SIMPLE_GM()
232 sk_tool_utils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8);
/external/skia/bench/
DTopoSortBench.cpp33 sk_tool_utils::TopoTestNode::AllocNodes(&fGraph, kNumElements); in onDelayedSetup()
52 sk_tool_utils::TopoTestNode::Shuffle(&fGraph, &fRand); in onDraw()
54 SkDEBUGCODE(bool actualResult =) SkTTopoSort<sk_tool_utils::TopoTestNode>(&fGraph); in onDraw()
69 SkTArray<sk_sp<sk_tool_utils::TopoTestNode>> fGraph;
/external/skqp/bench/
DTopoSortBench.cpp33 sk_tool_utils::TopoTestNode::AllocNodes(&fGraph, kNumElements); in onDelayedSetup()
52 sk_tool_utils::TopoTestNode::Shuffle(&fGraph, &fRand); in onDraw()
54 SkDEBUGCODE(bool actualResult =) SkTTopoSort<sk_tool_utils::TopoTestNode>(&fGraph); in onDraw()
69 SkTArray<sk_sp<sk_tool_utils::TopoTestNode>> fGraph;

12345678910>>...18