/external/skia/tests/ |
D | TopoSortTest.cpp | 14 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 …]
|
D | ReadWritePixelsGpuTest.cpp | 282 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/ |
D | textblobrandomfont.cpp | 59 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()
|
D | fontcache.cpp | 62 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()
|
D | bmpfilterqualityrepeat.cpp | 30 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()
|
D | displacement.cpp | 39 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()
|
D | textblobmixedsizes.cpp | 52 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()
|
D | mixedtextblobs.cpp | 51 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()
|
D | scaledemoji.cpp | 50 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()
|
D | textblobgeometrychange.cpp | 43 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()
|
D | androidblendmodes.cpp | 51 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()
|
D | variedtext.cpp | 67 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()
|
D | all_bitmap_configs.cpp | 40 ToolUtils::copy_to(©, 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(¬N32bitmap, 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);
|
D | convexpolyclip.cpp | 44 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()
|
D | textblobcolortrans.cpp | 40 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()
|
D | getpostextpath.cpp | 40 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]);
|
D | coloremoji_blendmodes.cpp | 58 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()
|
D | xfermodes.cpp | 105 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()
|
D | textblobtransforms.cpp | 36 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()
|
D | bitmapfilters.cpp | 62 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()
|
D | quadpaths.cpp | 95 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()
|
D | gradtext.cpp | 68 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);
|
D | imageblur.cpp | 31 SkFont font(ToolUtils::create_portable_typeface()); in imageblurgm_draw() 35 textPaint.setColor(ToolUtils::color_to_565(rand.nextBits(24) | 0xFF000000)); in imageblurgm_draw()
|
D | scaledemoji_rendering.cpp | 39 typefaces[3] = ToolUtils::create_portable_typeface("Emoji", SkFontStyle()); in onOnceBeforeDraw() 58 const char* text = ToolUtils::emoji_sample_text(); in onDraw()
|
/external/skia/bench/ |
D | TopoSortBench.cpp | 33 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;
|