Lines Matching refs:Sink
305 Gold(const SkString& sink, const SkString& src,
309 this->append(sink);
376 struct TaggedSink : public std::unique_ptr<Sink> {
827 static void push_sink(const SkCommandLineConfig& config, Sink* s) {
828 std::unique_ptr<Sink> sink(s);
830 // Try a simple Src as a canary. If it fails, skip this sink.
843 Error err = sink->draw(justOneRect, &bitmap, &stream, &log);
850 ts.reset(sink.release());
858 static Sink* create_sink(const GrContextOptions& grCtxOptions, const SkCommandLineConfig* config) {
896 #define SINK(t, sink, ...) if (config->getBackend().equals(t)) return new sink(__VA_ARGS__)
899 SINK("g8", RasterSink, kGray_8_SkColorType);
900 SINK("565", RasterSink, kRGB_565_SkColorType);
901 SINK("4444", RasterSink, kARGB_4444_SkColorType);
902 SINK("8888", RasterSink, kN32_SkColorType);
903 SINK("rgba", RasterSink, kRGBA_8888_SkColorType);
904 SINK("bgra", RasterSink, kBGRA_8888_SkColorType);
905 SINK("rgbx", RasterSink, kRGB_888x_SkColorType);
906 SINK("1010102", RasterSink, kRGBA_1010102_SkColorType);
907 SINK("101010x", RasterSink, kRGB_101010x_SkColorType);
908 SINK("pdf", PDFSink, false, SK_ScalarDefaultRasterDPI);
909 SINK("skp", SKPSink);
910 SINK("svg", SVGSink);
911 SINK("null", NullSink);
912 SINK("xps", XPSSink);
913 SINK("pdfa", PDFSink, true, SK_ScalarDefaultRasterDPI);
914 SINK("pdf300", PDFSink, false, 300);
915 SINK("jsdebug", DebugSink);
925 SINK( "f16", RasterSink, kRGBA_F16_SkColorType, srgbLinear);
926 SINK( "srgb", RasterSink, kRGBA_8888_SkColorType, srgb );
927 SINK( "esrgb", RasterSink, kRGBA_F16_SkColorType, srgb );
928 SINK( "esgbr", RasterSink, kRGBA_F16_SkColorType, rgb_to_gbr());
929 SINK( "narrow", RasterSink, kRGBA_8888_SkColorType, narrow );
930 SINK( "enarrow", RasterSink, kRGBA_F16_SkColorType, narrow );
931 SINK( "p3", RasterSink, kRGBA_8888_SkColorType, p3 );
932 SINK( "ep3", RasterSink, kRGBA_F16_SkColorType, p3 );
933 SINK( "rec2020", RasterSink, kRGBA_8888_SkColorType, rec2020() );
934 SINK("erec2020", RasterSink, kRGBA_F16_SkColorType, rec2020() );
936 SINK("f16norm", RasterSink, kRGBA_F16Norm_SkColorType, srgb);
938 SINK( "f32", RasterSink, kRGBA_F32_SkColorType, srgbLinear);
940 #undef SINK
944 static Sink* create_via(const SkString& tag, Sink* wrapped) {
981 Sink* sink = create_sink(grCtxOptions, &config);
982 if (sink == nullptr) {
991 Sink* next = create_via(part, sink);
995 delete sink;
996 sink = nullptr;
999 sink = next;
1001 if (sink) {
1002 push_sink(config, sink);
1071 static bool is_blacklisted(const char* sink, const char* src,
1074 if (match(FLAGS_blacklist[i+0], sink) &&
1084 // Even when a Task Sink reports to be non-threadsafe (e.g. GPU), we know things like
1088 // The finest-grained unit of work we can run: draw a single Src into a single Sink,
1091 Task(const TaggedSrc& src, const TaggedSink& sink) : src(src), sink(sink) {}
1093 const TaggedSink& sink;
1102 start(task.sink.tag.c_str(), task.src.tag.c_str(),
1104 Error err = task.sink->draw(*task.src, &bitmap, &stream, &log);
1106 info("%s %s %s %s:\n%s\n", task.sink.tag.c_str()
1115 task.sink.tag.c_str(),
1121 done(task.sink.tag.c_str(), task.src.tag.c_str(),
1160 !gGold.contains(Gold(task.sink.tag, task.src.tag,
1164 task.sink.tag.c_str(),
1172 const char* ext = task.sink->fileExtension();
1200 done(task.sink.tag.c_str(), task.src.tag.c_str(), task.src.options.c_str(), name.c_str());
1287 result.config = task.sink.tag;
1322 path = SkOSPath::Join(dir, task.sink.tag.c_str());
1356 // Unit tests don't fit so well into the Src/Sink model, so we give them special treatment.
1486 for (auto& sink : gSinks)
1488 if (src->veto(sink->flags()) ||
1489 is_blacklisted(sink.tag.c_str(), src.tag.c_str(),
1496 Task task(src, sink);
1497 if (src->serial() || sink->serial()) {