Home
last modified time | relevance | path

Searched refs:ToolUtils (Results 1 - 25 of 233) sorted by relevance

12345678910

/third_party/skia/tests/
H A DTopoSortTest.cpp12 #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 DReadWritePixelsGpuTest.cpp22 #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 Dtextblobrandomfont.cpp28 #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 Dfontcache.cpp27 #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 Dbmpfilterqualityrepeat.cpp22 #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 Dmixedtextblobs.cpp22 #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 Dtextblobmixedsizes.cpp31 #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 Dscaledemoji.cpp21 #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 Ddisplacement.cpp21 #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 Dconvexpolyclip.cpp28 #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 Dall_bitmap_configs.cpp26 #include "tools/ToolUtils.h"
40 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()); in DEF_SIMPLE_GM()
135 ToolUtils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8); in DEF_SIMPLE_GM()
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); in DEF_SIMPLE_GM()
H A Dandroidblendmodes.cpp21 #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 Dtextblobgeometrychange.cpp22 #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 Dvariedtext.cpp24 #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 Dtextblobcolortrans.cpp22 #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 Dgetpostextpath.cpp22 #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 Dxfermodes.cpp26 #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 Dquadpaths.cpp21 #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 Dbitmapfilters.cpp20 #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 Dcoloremoji_blendmodes.cpp31 #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 Dgradtext.cpp24 #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 Dtextblobtransforms.cpp21 #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 Dimageblur2.cpp18 #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 Dcolorwheel.cpp20 #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 DTopoSortBench.cpp13 #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;

Completed in 10 milliseconds

12345678910