Home | History | Annotate | Download | only in dm

Lines Matching defs:SINK

308     Gold(const SkString& sink, const SkString& src,
312 this->append(sink);
379 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());
862 static Sink* create_sink(const GrContextOptions& grCtxOptions, const SkCommandLineConfig* config) {
891 #define SINK(t, sink, ...) if (config->getBackend().equals(t)) { return new sink(__VA_ARGS__); }
897 SINK("g8", RasterSink, kGray_8_SkColorType);
898 SINK("565", RasterSink, kRGB_565_SkColorType);
899 SINK("4444", RasterSink, kARGB_4444_SkColorType);
900 SINK("8888", RasterSink, kN32_SkColorType);
901 SINK("srgb", RasterSink, kN32_SkColorType, srgbColorSpace);
902 SINK("rgba", RasterSink, kRGBA_8888_SkColorType);
903 SINK("bgra", RasterSink, kBGRA_8888_SkColorType);
904 SINK("rgbx", RasterSink, kRGB_888x_SkColorType);
905 SINK("1010102", RasterSink, kRGBA_1010102_SkColorType);
906 SINK("101010x", RasterSink, kRGB_101010x_SkColorType);
907 SINK("f16", RasterSink, kRGBA_F16_SkColorType, srgbLinearColorSpace);
908 SINK("pdf", PDFSink, false, SK_ScalarDefaultRasterDPI);
909 SINK("skp", SKPSink);
910 SINK("pipe", PipeSink);
911 SINK("svg", SVGSink);
912 SINK("null", NullSink);
913 SINK("xps", XPSSink);
914 SINK("pdfa", PDFSink, true, SK_ScalarDefaultRasterDPI);
915 SINK("pdf300", PDFSink, false, 300);
916 SINK("jsdebug", DebugSink);
918 #undef SINK
931 static Sink* create_via(const SkString& tag, Sink* wrapped) {
965 Sink* sink = create_sink(grCtxOptions, &config);
966 if (sink == nullptr) {
975 Sink* next = create_via(part, sink);
979 delete sink;
980 sink = nullptr;
983 sink = next;
985 if (sink) {
986 push_sink(config, sink);
1050 static bool is_blacklisted(const char* sink, const char* src,
1053 if (match(FLAGS_blacklist[i+0], sink) &&
1063 // Even when a Task Sink reports to be non-threadsafe (e.g. GPU), we know things like
1067 // The finest-grained unit of work we can run: draw a single Src into a single Sink,
1070 Task(const TaggedSrc& src, const TaggedSink& sink) : src(src), sink(sink) {}
1072 const TaggedSink& sink;
1081 start(task.sink.tag.c_str(), task.src.tag.c_str(),
1083 Error err = task.sink->draw(*task.src, &bitmap, &stream, &log);
1085 info("%s %s %s %s:\n%s\n", task.sink.tag.c_str()
1094 task.sink.tag.c_str(),
1100 done(task.sink.tag.c_str(), task.src.tag.c_str(),
1139 !gGold.contains(Gold(task.sink.tag, task.src.tag,
1143 task.sink.tag.c_str(),
1151 const char* ext = task.sink->fileExtension();
1163 done(task.sink.tag.c_str(), task.src.tag.c_str(), task.src.options.c_str(), name.c_str());
1178 result.config = task.sink.tag;
1207 path = SkOSPath::Join(dir, task.sink.tag.c_str());
1241 // Unit tests don't fit so well into the Src/Sink model, so we give them special treatment.
1388 for (auto& sink : gSinks)
1390 if (src->veto(sink->flags()) ||
1391 is_blacklisted(sink.tag.c_str(), src.tag.c_str(),
1398 Task task(src, sink);
1399 if (src->serial() || sink->serial()) {