/external/skia/tests/ |
D | TopoSortTest.cpp | 14 typedef void (*CreateGraphPF)(SkTDArray<sk_tool_utils::TopoTestNode*>* graph); 23 static void create_graph0(SkTDArray<sk_tool_utils::TopoTestNode*>* graph) { in create_graph0() 24 sk_tool_utils::TopoTestNode::AllocNodes(graph, 4); in create_graph0() 41 static void create_graph1(SkTDArray<sk_tool_utils::TopoTestNode*>* graph) { in create_graph1() 42 sk_tool_utils::TopoTestNode::AllocNodes(graph, 4); in create_graph1() 54 static void create_graph2(SkTDArray<sk_tool_utils::TopoTestNode*>* graph) { in create_graph2() 55 sk_tool_utils::TopoTestNode::AllocNodes(graph, 3); in create_graph2() 73 static void create_graph3(SkTDArray<sk_tool_utils::TopoTestNode*>* graph) { in create_graph3() 74 sk_tool_utils::TopoTestNode::AllocNodes(graph, 7); in create_graph3() 94 static void create_graph4(SkTDArray<sk_tool_utils::TopoTestNode*>* graph) { in create_graph4() [all …]
|
/external/skia/gm/ |
D | textblobrandomfont.cpp | 42 SkAutoTUnref<SkTypeface> orig(sk_tool_utils::create_portable_typeface("sans-serif", in onOnceBeforeDraw() 52 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, 0); in onOnceBeforeDraw() 62 sk_tool_utils::add_to_text_blob(&builder, bigtext1, paint, 0, offset); in onOnceBeforeDraw() 66 sk_tool_utils::add_to_text_blob(&builder, bigtext2, paint, 0, offset); in onOnceBeforeDraw() 70 sk_tool_utils::emoji_typeface(&origEmoji); in onOnceBeforeDraw() 71 const char* osName = sk_tool_utils::platform_os_name(); in onOnceBeforeDraw() 74 const char* emojiText = sk_tool_utils::emoji_sample_text(); in onOnceBeforeDraw() 79 sk_tool_utils::add_to_text_blob(&builder, emojiText, paint, 0, offset); in onOnceBeforeDraw() 101 canvas->drawColor(sk_tool_utils::color_to_565(SK_ColorWHITE)); in onDraw()
|
D | mixedtextblobs.cpp | 42 sk_tool_utils::emoji_typeface(&fEmojiTypeface); in onOnceBeforeDraw() 43 fEmojiText = sk_tool_utils::emoji_sample_text(); in onOnceBeforeDraw() 53 sk_tool_utils::set_portable_typeface(&paint); in onOnceBeforeDraw() 59 sk_tool_utils::add_to_text_blob(&builder, text, paint, 10, yOffset); in onOnceBeforeDraw() 76 sk_tool_utils::add_to_text_blob(&builder, text, paint, xOffset - bounds.width() * 0.25f, in onOnceBeforeDraw() 88 sk_tool_utils::add_to_text_blob(&builder, text, paint, xOffset - bounds.width() * 0.3f, in onOnceBeforeDraw() 96 sk_tool_utils::add_to_text_blob(&builder, text, paint, corruptedAx, corruptedAy); in onOnceBeforeDraw() 102 name.append(sk_tool_utils::platform_os_emoji()); in onShortName() 112 canvas->drawColor(sk_tool_utils::color_to_565(SK_ColorGRAY)); in onDraw()
|
D | textblobmixedsizes.cpp | 45 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, 0); in onOnceBeforeDraw() 53 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset); in onOnceBeforeDraw() 60 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset); in onOnceBeforeDraw() 67 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset); in onOnceBeforeDraw() 74 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset); in onOnceBeforeDraw() 109 canvas->drawColor(sk_tool_utils::color_to_565(SK_ColorWHITE)); in onDraw() 123 paint.setColor(sk_tool_utils::color_to_565(SK_ColorWHITE)); in onDraw() 131 blurPaint.setColor(sk_tool_utils::color_to_565(SK_ColorBLACK)); in onDraw()
|
D | textblobcolortrans.cpp | 34 sk_tool_utils::set_portable_typeface(&paint); in onOnceBeforeDraw() 40 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset - 30); in onOnceBeforeDraw() 48 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset - 8); in onOnceBeforeDraw() 64 canvas->drawColor(sk_tool_utils::color_to_565(SK_ColorGRAY)); in onDraw() 74 SkColor colors[] = {SK_ColorCYAN, sk_tool_utils::color_to_565(SK_ColorLTGRAY), in onDraw()
|
D | bmpfilterqualityrepeat.cpp | 17 BmpFilterQualityRepeat() { this->setBGColor(sk_tool_utils::color_to_565(0xFFCCBBAA)); } in BmpFilterQualityRepeat() 28 colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFF008200)); in onOnceBeforeDraw() 30 colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFFFF9000)); in onOnceBeforeDraw() 32 colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFF2000FF)); in onOnceBeforeDraw() 54 sk_tool_utils::set_portable_typeface(&paint); in onDraw()
|
D | convexpolyclip.cpp | 28 SkColor colors[] = { sk_tool_utils::color_to_565(SK_ColorDKGRAY), in make_bmp() 29 sk_tool_utils::color_to_565(0xFF222255), in make_bmp() 30 sk_tool_utils::color_to_565(0xFF331133), in make_bmp() 31 sk_tool_utils::color_to_565(0xFF884422), in make_bmp() 32 sk_tool_utils::color_to_565(0xFF000022), SK_ColorWHITE, in make_bmp() 33 sk_tool_utils::color_to_565(0xFFAABBCC) }; in make_bmp() 60 sk_tool_utils::set_portable_typeface(&paint); in make_bmp() 63 paint.setColor(sk_tool_utils::color_to_565(SK_ColorLTGRAY)); in make_bmp() 154 sk_tool_utils::set_portable_typeface(&txtPaint); in onDraw() 155 txtPaint.setColor(sk_tool_utils::color_to_565(SK_ColorDKGRAY)); in onDraw()
|
D | lightingshader.cpp | 19 sk_tool_utils::create_hemi_normal_map(&hemi, SkIRect::MakeWH(texSize, texSize)); in make_hemi_normalmap() 28 sk_tool_utils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap() 37 sk_tool_utils::create_tetra_normal_map(&tetra, SkIRect::MakeWH(texSize, texSize)); in make_tetra_normalmap() 47 this->setBGColor(sk_tool_utils::color_to_565(0xFFCCCCCC)); in LightingShaderGM() 78 fDiffuse = sk_tool_utils::create_checkerboard_bitmap( in onOnceBeforeDraw() 80 sk_tool_utils::color_to_565(0x0), in onOnceBeforeDraw() 81 sk_tool_utils::color_to_565(0xFF804020), in onOnceBeforeDraw()
|
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::NewFromBitmap(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 | textblobtransforms.cpp | 31 sk_tool_utils::set_portable_typeface(&paint); in onOnceBeforeDraw() 35 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, 0); in onOnceBeforeDraw() 41 sk_tool_utils::add_to_text_blob(&builder, text, paint, xOffset, 0); in onOnceBeforeDraw() 49 sk_tool_utils::add_to_text_blob(&builder, text, paint, xOffset, -yOffset - 10); in onOnceBeforeDraw() 65 canvas->drawColor(sk_tool_utils::color_to_565(SK_ColorGRAY)); in onDraw()
|
D | variedtext.cpp | 62 … fTypefacesToUnref[0] = sk_tool_utils::create_portable_typeface("sans-serif", SkTypeface::kNormal); in onOnceBeforeDraw() 63 … fTypefacesToUnref[1] = sk_tool_utils::create_portable_typeface("sans-serif", SkTypeface::kBold); in onOnceBeforeDraw() 64 … fTypefacesToUnref[2] = sk_tool_utils::create_portable_typeface("serif", SkTypeface::kNormal); in onOnceBeforeDraw() 65 fTypefacesToUnref[3] = sk_tool_utils::create_portable_typeface("serif", SkTypeface::kBold); in onOnceBeforeDraw() 78 fColors[i] = sk_tool_utils::color_to_565(fColors[i]); in onOnceBeforeDraw()
|
D | colorwheel.cpp | 34 sk_tool_utils::draw_checkerboard(canvas); 43 sk_tool_utils::set_portable_typeface(&paint, nullptr, SkTypeface::kBold); 46 canvas->clear(sk_tool_utils::color_to_565(SK_ColorLTGRAY));
|
D | textblobblockreordering.cpp | 29 sk_tool_utils::set_portable_typeface(&paint); in onOnceBeforeDraw() 35 sk_tool_utils::add_to_text_blob(&builder, text, paint, 0, yOffset - 30); in onOnceBeforeDraw() 53 canvas->drawColor(sk_tool_utils::color_to_565(SK_ColorGRAY)); in onDraw()
|
D | tileimagefilter.cpp | 39 sk_tool_utils::create_string_bitmap(50, 50, 0xD000D000, 10, 45, 50, "e"))); in onOnceBeforeDraw() 42 sk_tool_utils::create_checkerboard_bitmap(80, 80, in onOnceBeforeDraw() 43 sk_tool_utils::color_to_565(0xFFA0A0A0), in onOnceBeforeDraw() 44 sk_tool_utils::color_to_565(0xFF404040), in onOnceBeforeDraw()
|
D | dstreadshuffle.cpp | 91 sk_tool_utils::set_portable_typeface(paint); in drawShape() 101 sk_tool_utils::color_to_565(0xFFFF7F00), // Orange in GetColor() 105 sk_tool_utils::color_to_565(0xFF4B0082), // indigo in GetColor() 106 sk_tool_utils::color_to_565(0xFF7F00FF) }; // violet in GetColor()
|
D | verttext2.cpp | 35 fProp = SkTypeface::CreateFromName(sk_tool_utils::platform_font_name("sans-serif"), in onOnceBeforeDraw() 37 fMono = SkTypeface::CreateFromName(sk_tool_utils::platform_font_name("monospace"), in onOnceBeforeDraw() 43 name.append(sk_tool_utils::major_platform_os_name()); in onShortName()
|
D | pixelsnap.cpp | 38 sk_tool_utils::create_checkerboard_shader( in onDraw() 39 sk_tool_utils::color_to_565(0xFFAAAAAA), in onDraw() 40 sk_tool_utils::color_to_565(0xFF777777), 1))->unref(); in onDraw() 48 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
|
D | coloremoji.cpp | 57 sk_tool_utils::emoji_typeface(&emojiFont.typeface); in onOnceBeforeDraw() 58 emojiFont.text = sk_tool_utils::emoji_sample_text(); in onOnceBeforeDraw() 63 name.append(sk_tool_utils::platform_os_emoji()); in onShortName() 73 canvas->drawColor(sk_tool_utils::color_to_565(SK_ColorGRAY)); in onDraw()
|
D | quadpaths.cpp | 88 sk_tool_utils::set_portable_typeface(&titlePaint); in onDraw() 117 SkColor color = sk_tool_utils::color_to_565(0xff007000); in onDraw() 132 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw() 232 sk_tool_utils::set_portable_typeface(&titlePaint); in onDraw() 261 SkColor color = sk_tool_utils::color_to_565(0xff007000); in onDraw() 276 sk_tool_utils::set_portable_typeface(&labelPaint); in onDraw()
|
D | xfermodes.cpp | 129 p.setColor(sk_tool_utils::color_to_565(0xFFFFCC44)); in make_bitmaps() 139 p.setColor(sk_tool_utils::color_to_565(0xFF66AAFF)); in make_bitmaps() 187 p.setColor(sk_tool_utils::color_to_565(0xFF66AAFF)); in draw_mode() 191 p.setColor(sk_tool_utils::color_to_565(0xFFAA66FF)); in draw_mode() 210 p.setColor(sk_tool_utils::color_to_565(0xFF66AAFF)); in draw_mode() 271 sk_tool_utils::set_portable_typeface(&labelP); in onDraw()
|
D | fontmgr.cpp | 68 fName.append(sk_tool_utils::platform_os_name()); in FontMgrGM() 69 fName.append(sk_tool_utils::platform_extra_config("GDI")); in FontMgrGM() 137 name.append(sk_tool_utils::platform_os_name()); in onShortName() 138 name.append(sk_tool_utils::platform_extra_config("GDI")); in onShortName() 226 fName.append(sk_tool_utils::platform_os_name()); in FontMgrBoundsGM() 227 fName.append(sk_tool_utils::platform_extra_config("GDI")); in FontMgrBoundsGM()
|
D | samplerstress.cpp | 105 sk_tool_utils::set_portable_typeface(&paint); in onDraw() 132 sk_tool_utils::set_portable_typeface(&paint2); in onDraw() 137 paint2.setColor(sk_tool_utils::color_to_565(SK_ColorGRAY)); in onDraw()
|
D | pictureshader.cpp | 146 paint.setColor(sk_tool_utils::color_to_565(SK_ColorLTGRAY)); in drawScene() 193 p.setColor(sk_tool_utils::color_to_565(0xFF303F9F)); // dark blue 195 p.setColor(sk_tool_utils::color_to_565(0xFFC5CAE9)); // light blue 204 p.setColor(sk_tool_utils::color_to_565(0xFF8BC34A)); // green 208 p.setColor(sk_tool_utils::color_to_565(0xFFB6B6B6)); // gray
|
/external/skia/bench/ |
D | TopoSortBench.cpp | 20 sk_tool_utils::TopoTestNode::DeallocNodes(&fGraph); in ~TopoSortBench() 34 sk_tool_utils::TopoTestNode::AllocNodes(&fGraph, kNumElements); in onDelayedSetup() 53 sk_tool_utils::TopoTestNode::Shuffle(&fGraph, &fRand); in onDraw() 55 SkDEBUGCODE(bool actualResult =) SkTTopoSort<sk_tool_utils::TopoTestNode>(&fGraph); in onDraw() 70 SkTDArray<sk_tool_utils::TopoTestNode*> fGraph;
|
D | SkGlyphCacheBench.cpp | 56 SkTypeface* typeface = sk_tool_utils::create_portable_typeface( in onDraw() 94 {sk_tool_utils::create_portable_typeface("serif", SkTypeface::kItalic), in onDraw() 95 sk_tool_utils::create_portable_typeface("sans-serif", SkTypeface::kItalic)}; in onDraw()
|