/third_party/skia/tests/ |
H A D | TopoSortTest.cpp | 12 #include "tools/ToolUtils.h" 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 in create_graph3() [all...] |
H A D | ReadWritePixelsGpuTest.cpp | 22 #include "tools/ToolUtils.h" 285 ToolUtils::colortype_name(srcCT), ToolUtils::alphatype_name(srcAT), in gpu_read_pixels_test_driver() 286 ToolUtils::colortype_name(readCT), ToolUtils::alphatype_name(readAT), in gpu_read_pixels_test_driver() 335 ToolUtils::colortype_name(srcCT), ToolUtils::alphatype_name(srcAT), in gpu_read_pixels_test_driver() 336 ToolUtils::colortype_name(readCT), ToolUtils::alphatype_name(readAT), in gpu_read_pixels_test_driver() 383 ToolUtils in gpu_read_pixels_test_driver() [all...] |
/third_party/skia/gm/ |
H A D | textblobrandomfont.cpp | 28 #include "tools/ToolUtils.h" 57 auto typeface = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); 67 ToolUtils::add_to_text_blob(&builder, text, font, 0, y); 78 ToolUtils::add_to_text_blob(&builder, bigtext1, font, 0, y); 83 ToolUtils::add_to_text_blob(&builder, bigtext2, font, 0, y); 87 if (sk_sp<SkTypeface> origEmoji = ToolUtils::emoji_typeface()) { 89 const char* emojiText = ToolUtils::emoji_sample_text(); 92 ToolUtils::add_to_text_blob(&builder, emojiText, font, 0, y); 117 // This GM uses ToolUtils::makeSurface which doesn't work well with vias. 125 auto surface(ToolUtils [all...] |
H A D | fontcache.cpp | 27 #include "tools/ToolUtils.h" 60 fTypefaces[0] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Italic()); 61 fTypefaces[1] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Italic()); 62 fTypefaces[2] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Normal()); 63 fTypefaces[3] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Normal()); 64 fTypefaces[4] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold()); 65 fTypefaces[5] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold());
|
H A D | bmpfilterqualityrepeat.cpp | 22 #include "tools/ToolUtils.h" 29 BmpFilterQualityRepeat() { this->setBGColor(ToolUtils::color_to_565(0xFFCCBBAA)); } in BmpFilterQualityRepeat() 40 colorBmp.eraseColor(ToolUtils::color_to_565(0xFF008200)); 42 colorBmp.eraseColor(ToolUtils::color_to_565(0xFFFF9000)); 44 colorBmp.eraseColor(ToolUtils::color_to_565(0xFF2000FF)); 72 SkFont font(ToolUtils::create_portable_typeface()); in drawAll()
|
H A D | mixedtextblobs.cpp | 22 #include "tools/ToolUtils.h" 51 fEmojiTypeface = ToolUtils::planet_typeface(); 59 SkFont font(ToolUtils::create_portable_typeface(), 385); 67 ToolUtils::add_to_text_blob(&builder, text, font, 10, yOffset); 83 ToolUtils::add_to_text_blob(&builder, 95 ToolUtils::add_to_text_blob(&builder, fEmojiText, font, xOffset, yOffset); 102 ToolUtils::add_to_text_blob(&builder, text, font, corruptedAx, corruptedAy);
|
H A D | textblobmixedsizes.cpp | 31 #include "tools/ToolUtils.h" 52 ToolUtils::add_to_text_blob(&builder, text, font, 0, 0); 60 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset); 67 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset); 74 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset); 81 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset); 88 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset);
|
H A D | scaledemoji.cpp | 21 #include "tools/ToolUtils.h" 50 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); 51 fEmojiFont.fText = ToolUtils::emoji_sample_text(); 99 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); 100 fEmojiFont.fText = ToolUtils::emoji_sample_text(); 157 fEmojiFont.fTypeface = ToolUtils::emoji_typeface(); 158 fEmojiFont.fText = ToolUtils::emoji_sample_text();
|
H A D | displacement.cpp | 21 #include "tools/ToolUtils.h" 39 fImage = ToolUtils::create_string_image(80, 80, 0xFF884422, 15, 55, 96, "g"); 41 SkColor c1 = ToolUtils::color_to_565(0xFF244484); 42 SkColor c2 = ToolUtils::color_to_565(0xFF804020); 44 fCheckerboard = ToolUtils::create_checkerboard_image(80, 80, c1, c2, 8); 45 fSmall = ToolUtils::create_checkerboard_image(64, 64, c1, c2, 8); 46 fLarge = ToolUtils::create_checkerboard_image(96, 96, c1, c2, 8); 47 fLargeW = ToolUtils::create_checkerboard_image(96, 64, c1, c2, 8); 48 fLargeH = ToolUtils::create_checkerboard_image(64, 96, c1, c2, 8);
|
H A D | convexpolyclip.cpp | 28 #include "tools/ToolUtils.h" 42 ToolUtils::color_to_565(0xFF222255), in make_img() 43 ToolUtils::color_to_565(0xFF331133), in make_img() 44 ToolUtils::color_to_565(0xFF884422), in make_img() 45 ToolUtils::color_to_565(0xFF000022), in make_img() 47 ToolUtils::color_to_565(0xFFAABBCC)}; in make_img() 73 SkFont font(ToolUtils::create_portable_typeface(), wScalar / 2.2f); in make_img() 167 SkFont font(ToolUtils::create_portable_typeface(), 23);
|
H A D | all_bitmap_configs.cpp | 26 #include "tools/ToolUtils.h" 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()); in DEF_SIMPLE_GM() 135 ToolUtils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8); in DEF_SIMPLE_GM() 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); in DEF_SIMPLE_GM()
|
H A D | androidblendmodes.cpp | 21 #include "tools/ToolUtils.h" 51 p.setColor(ToolUtils::color_to_565(kBlue)); 61 p.setColor(ToolUtils::color_to_565(kRed)); 80 SkFont font(ToolUtils::create_portable_typeface()); 82 ToolUtils::draw_checkerboard(canvas, kWhite, kGrey, 32);
|
H A D | textblobgeometrychange.cpp | 22 #include "tools/ToolUtils.h" 43 SkFont font(ToolUtils::create_portable_typeface(), 20); 48 ToolUtils::add_to_text_blob(&builder, text, font, 10, 10); 54 auto surface = ToolUtils::makeSurface(canvas, info, &props);
|
H A D | variedtext.cpp | 24 #include "tools/ToolUtils.h" 67 fTypefaces[0] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle()); 68 fTypefaces[1] = ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()); 69 fTypefaces[2] = ToolUtils::create_portable_typeface("serif", SkFontStyle()); 70 fTypefaces[3] = ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold()); 83 fColors[i] = ToolUtils::color_to_565(fColors[i]);
|
H A D | textblobcolortrans.cpp | 22 #include "tools/ToolUtils.h" 40 SkFont font(ToolUtils::create_portable_typeface(), 256); 48 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset - 30); 54 ToolUtils::add_to_text_blob(&builder, text, font, 0, yOffset - 8);
|
H A D | getpostextpath.cpp | 22 #include "tools/ToolUtils.h" 40 font.setTypeface(ToolUtils::create_portable_typeface()); in DEF_SIMPLE_GM() 49 ToolUtils::get_text_path(font, text, len, SkTextEncoding::kUTF8, &path, nullptr); in DEF_SIMPLE_GM() 70 ToolUtils::get_text_path(font, text, len, SkTextEncoding::kUTF8, &path, &pos[0]); in DEF_SIMPLE_GM()
|
H A D | xfermodes.cpp | 26 #include "tools/ToolUtils.h" 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());
|
H A D | quadpaths.cpp | 21 #include "tools/ToolUtils.h" 95 SkFont font(ToolUtils::create_portable_typeface(), 15); 96 SkFont labelFont(ToolUtils::create_portable_typeface(), 10); 122 SkColor color = ToolUtils::color_to_565(0xff007000); 226 SkFont font(ToolUtils::create_portable_typeface(), 15); 227 SkFont labelFont(ToolUtils::create_portable_typeface(), 10); 252 SkColor color = ToolUtils::color_to_565(0xff007000);
|
H A D | bitmapfilters.cpp | 20 #include "tools/ToolUtils.h" 61 SkFont font(ToolUtils::create_portable_typeface()); in draw_row() 62 const char* name = ToolUtils::colortype_name(img->colorType()); in draw_row() 79 ToolUtils::copy_to(&bm4444, kARGB_4444_SkColorType, bm32); 80 ToolUtils::copy_to(&bm565, kRGB_565_SkColorType, bm32);
|
H A D | coloremoji_blendmodes.cpp | 31 #include "tools/ToolUtils.h" 58 sk_sp<SkTypeface> orig(ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold())); 62 fColorType = ToolUtils::emoji_typeface(); 118 SkFont labelFont(ToolUtils::create_portable_typeface()); 147 const char* text = ToolUtils::emoji_sample_text();
|
H A D | gradtext.cpp | 24 #include "tools/ToolUtils.h" 68 SkFont font(ToolUtils::create_portable_typeface(), 500); 83 SkFont font(ToolUtils::create_portable_typeface()); 107 SkFont font(ToolUtils::create_portable_typeface(), kTextSize); in DEF_SIMPLE_GM()
|
H A D | textblobtransforms.cpp | 21 #include "tools/ToolUtils.h" 36 SkFont font(ToolUtils::create_portable_typeface(), 162); 42 ToolUtils::add_to_text_blob(&builder, text, font, 0, 0); 48 ToolUtils::add_to_text_blob(&builder, text, font, xOffset, 0); 56 ToolUtils::add_to_text_blob(&builder, text, font, xOffset, -yOffset - 10);
|
H A D | imageblur2.cpp | 18 #include "tools/ToolUtils.h" 41 SkFont font(ToolUtils::create_portable_typeface(), textSize); in DEF_SIMPLE_GM() 55 textPaint.setColor(ToolUtils::color_to_565(rand.nextBits(24) | 0xFF000000)); in DEF_SIMPLE_GM()
|
H A D | colorwheel.cpp | 20 #include "tools/ToolUtils.h" 42 ToolUtils::draw_checkerboard(canvas); in DEF_SIMPLE_GM() 50 SkFont font(ToolUtils::create_portable_typeface("sans-serif", SkFontStyle::Bold()), 18); in DEF_SIMPLE_GM()
|
/third_party/skia/bench/ |
H A D | TopoSortBench.cpp | 13 #include "tools/ToolUtils.h" 33 ToolUtils::TopoTestNode::AllocNodes(&fGraph, kNumElements); 52 ToolUtils::TopoTestNode::Shuffle(&fGraph, &fRand); 54 SkDEBUGCODE(bool actualResult =) GrTTopoSort<ToolUtils::TopoTestNode>(&fGraph); 69 SkTArray<sk_sp<ToolUtils::TopoTestNode>> fGraph;
|