Lines Matching refs:Sink
303 Gold(const SkString& sink, const SkString& src,
307 this->append(sink);
374 struct TaggedSink : public std::unique_ptr<Sink> {
834 static void push_sink(const SkCommandLineConfig& config, Sink* s) {
835 std::unique_ptr<Sink> sink(s);
837 // Try a simple Src as a canary. If it fails, skip this sink.
850 Error err = sink->draw(justOneRect, &bitmap, &stream, &log);
857 ts.reset(sink.release());
861 static Sink* create_sink(const GrContextOptions& grCtxOptions, const SkCommandLineConfig* config) {
899 #define SINK(t, sink, ...) if (config->getBackend().equals(t)) return new sink(__VA_ARGS__)
902 SINK("g8", RasterSink, kGray_8_SkColorType);
903 SINK("565", RasterSink, kRGB_565_SkColorType);
904 SINK("4444", RasterSink, kARGB_4444_SkColorType);
905 SINK("8888", RasterSink, kN32_SkColorType);
906 SINK("rgba", RasterSink, kRGBA_8888_SkColorType);
907 SINK("bgra", RasterSink, kBGRA_8888_SkColorType);
908 SINK("rgbx", RasterSink, kRGB_888x_SkColorType);
909 SINK("1010102", RasterSink, kRGBA_1010102_SkColorType);
910 SINK("101010x", RasterSink, kRGB_101010x_SkColorType);
911 SINK("pdf", PDFSink, false, SK_ScalarDefaultRasterDPI);
912 SINK("skp", SKPSink);
913 SINK("svg", SVGSink);
914 SINK("null", NullSink);
915 SINK("xps", XPSSink);
916 SINK("pdfa", PDFSink, true, SK_ScalarDefaultRasterDPI);
917 SINK("pdf300", PDFSink, false, 300);
918 SINK("jsdebug", DebugSink);
928 SINK( "f16", RasterSink, kRGBA_F16_SkColorType, srgbLinear);
929 SINK( "srgb", RasterSink, kRGBA_8888_SkColorType, srgb );
930 SINK( "esrgb", RasterSink, kRGBA_F16_SkColorType, srgb );
931 SINK( "narrow", RasterSink, kRGBA_8888_SkColorType, narrow );
932 SINK( "enarrow", RasterSink, kRGBA_F16_SkColorType, narrow );
933 SINK( "p3", RasterSink, kRGBA_8888_SkColorType, p3 );
934 SINK( "ep3", RasterSink, kRGBA_F16_SkColorType, p3 );
935 SINK( "rec2020", RasterSink, kRGBA_8888_SkColorType, rec2020() );
936 SINK("erec2020", RasterSink, kRGBA_F16_SkColorType, rec2020() );
938 SINK( "f32", RasterSink, kRGBA_F32_SkColorType, srgbLinear);
940 #undef SINK
948 static Sink* create_via(const SkString& tag, Sink
985 Sink* sink = create_sink(grCtxOptions, &config);
986 if (sink == nullptr) {
995 Sink* next = create_via(part, sink);
999 delete sink;
1000 sink = nullptr;
1003 sink = next;
1005 if (sink) {
1006 push_sink(config, sink);
1074 static bool is_blacklisted(const char* sink, const char* src,
1077 if (match(FLAGS_blacklist[i+0], sink) &&
1087 // Even when a Task Sink reports to be non-threadsafe (e.g. GPU), we know things like
1091 // The finest-grained unit of work we can run: draw a single Src into a single Sink,
1094 Task(const TaggedSrc& src, const TaggedSink& sink) : src(src), sink(sink) {}
1096 const TaggedSink& sink;
1105 start(task.sink.tag.c_str(), task.src.tag.c_str(),
1107 Error err = task.sink->draw(*task.src, &bitmap, &stream, &log);
1109 info("%s %s %s %s:\n%s\n", task.sink.tag.c_str()
1118 task.sink.tag.c_str(),
1124 done(task.sink.tag.c_str(), task.src.tag.c_str(),
1163 !gGold.contains(Gold(task.sink.tag, task.src.tag,
1167 task.sink.tag.c_str(),
1175 const char* ext = task.sink->fileExtension();
1187 done(task.sink.tag.c_str(), task.src.tag.c_str(), task.src.options.c_str(), name.c_str());
1201 result.config = task.sink.tag;
1230 path = SkOSPath::Join(dir, task.sink.tag.c_str());
1264 // Unit tests don't fit so well into the Src/Sink model, so we give them special treatment.
1394 for (auto& sink : gSinks)
1396 if (src->veto(sink->flags()) ||
1397 is_blacklisted(sink.tag.c_str(), src.tag.c_str(),
1404 Task task(src, sink);
1405 if (src->serial() || sink->serial()) {