Home | History | Annotate | Download | only in dm

Lines Matching defs:sink

320     Gold(const SkString& sink, const SkString& src,
324 this->append(sink);
391 struct TaggedSink : public std::unique_ptr<Sink> {
839 static void push_sink(const SkCommandLineConfig& config, Sink* s) {
840 std::unique_ptr<Sink> sink(s);
842 // Try a simple Src as a canary. If it fails, skip this sink.
855 Error err = sink->draw(justOneRect, &bitmap, &stream, &log);
862 ts.reset(sink.release());
874 static Sink* create_sink(const GrContextOptions& grCtxOptions, const SkCommandLineConfig* config) {
907 #define SINK(t, sink, ...) if (config->getBackend().equals(t)) { return new sink(__VA_ARGS__); }
913 SINK("g8", RasterSink, kGray_8_SkColorType);
914 SINK("565", RasterSink, kRGB_565_SkColorType);
915 SINK("4444", RasterSink, kARGB_4444_SkColorType);
916 SINK("8888", RasterSink, kN32_SkColorType);
917 SINK("srgb", RasterSink, kN32_SkColorType, srgbColorSpace);
918 SINK("rgba", RasterSink, kRGBA_8888_SkColorType);
919 SINK("bgra", RasterSink, kBGRA_8888_SkColorType);
920 SINK("rgbx", RasterSink, kRGB_888x_SkColorType);
921 SINK("1010102", RasterSink, kRGBA_1010102_SkColorType);
922 SINK("101010x", RasterSink, kRGB_101010x_SkColorType);
923 SINK("f16", RasterSink, kRGBA_F16_SkColorType, srgbLinearColorSpace);
924 SINK("t8888", ThreadedSink, kN32_SkColorType);
925 SINK("pdf", PDFSink, false, SK_ScalarDefaultRasterDPI);
926 SINK("skp", SKPSink);
927 SINK("pipe", PipeSink);
928 SINK("svg", SVGSink);
929 SINK("null", NullSink);
930 SINK("xps", XPSSink);
931 SINK("pdfa", PDFSink, true, SK_ScalarDefaultRasterDPI);
932 SINK("pdf300", PDFSink, false, 300);
933 SINK("jsdebug", DebugSink);
935 #undef SINK
948 static Sink* create_via(const SkString& tag, Sink* wrapped) {
982 Sink* sink = create_sink(grCtxOptions, &config);
983 if (sink == nullptr) {
992 Sink* next = create_via(part, sink);
996 delete sink;
997 sink = nullptr;
1000 sink = next;
1002 if (sink) {
1003 push_sink(config, sink);
1067 static bool is_blacklisted(const char* sink, const char* src,
1070 if (match(FLAGS_blacklist[i+0], sink) &&
1080 // Even when a Task Sink reports to be non-threadsafe (e.g. GPU), we know things like
1084 // The finest-grained unit of work we can run: draw a single Src into a single Sink,
1087 Task(const TaggedSrc& src, const TaggedSink& sink) : src(src), sink(sink) {}
1089 const TaggedSink& sink;
1098 start(task.sink.tag.c_str(), task.src.tag.c_str(),
1100 Error err = task.sink->draw(*task.src, &bitmap, &stream, &log);
1102 info("%s %s %s %s:\n%s\n", task.sink.tag.c_str()
1111 task.sink.tag.c_str(),
1117 done(task.sink.tag.c_str(), task.src.tag.c_str(),
1156 !gGold.contains(Gold(task.sink.tag, task.src.tag,
1160 task.sink.tag.c_str(),
1168 const char* ext = task.sink->fileExtension();
1180 done(task.sink.tag.c_str(), task.src.tag.c_str(), task.src.options.c_str(), name.c_str());
1195 result.config = task.sink.tag;
1224 path = SkOSPath::Join(dir, task.sink.tag.c_str());
1258 // Unit tests don't fit so well into the Src/Sink model, so we give them special treatment.
1408 for (auto& sink : gSinks)
1410 if (src->veto(sink->flags()) ||
1411 is_blacklisted(sink.tag.c_str(), src.tag.c_str(),
1418 Task task(src, sink);
1419 if (src->serial() || sink->serial()) {