/external/skqp/tests/ |
D | TopoSortTest.cpp | 14 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/ |
D | TopoSortTest.cpp | 14 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/ |
D | textblobrandomfont.cpp | 45 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()
|
D | fontcache.cpp | 54 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()
|
D | mixedtextblobs.cpp | 43 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()
|
D | bmpfilterqualityrepeat.cpp | 18 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()
|
D | displacement.cpp | 28 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()
|
D | textblobmixedsizes.cpp | 40 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()
|
D | atlastext.cpp | 79 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()
|
D | lightingshader.cpp | 20 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()
|
D | all_bitmap_configs.cpp | 26 sk_tool_utils::copy_to(©, 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(¬N32bitmap, 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);
|
D | convexpolyclip.cpp | 30 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/ |
D | textblobrandomfont.cpp | 45 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()
|
D | mixedtextblobs.cpp | 43 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()
|
D | fontcache.cpp | 54 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()
|
D | textblobmixedsizes.cpp | 40 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()
|
D | scaledemoji.cpp | 43 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()
|
D | bmpfilterqualityrepeat.cpp | 18 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()
|
D | displacement.cpp | 28 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()
|
D | atlastext.cpp | 79 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()
|
D | coloremoji_blendmodes.cpp | 53 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()
|
D | lightingshader.cpp | 20 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()
|
D | all_bitmap_configs.cpp | 26 sk_tool_utils::copy_to(©, 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(¬N32bitmap, 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/ |
D | TopoSortBench.cpp | 33 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/ |
D | TopoSortBench.cpp | 33 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;
|