Home | History | Annotate | Download | only in dm

Lines Matching refs:Sink

288     Gold(const SkString& sink, const SkString& src,
292 this->append(sink);
359 struct TaggedSink : public std::unique_ptr<Sink> {
808 static void push_sink(const SkCommandLineConfig& config, Sink* s) {
809 std::unique_ptr<Sink> sink(s);
811 // Try a simple Src as a canary. If it fails, skip this sink.
824 Error err = sink->draw(justOneRect, &bitmap, &stream, &log);
831 ts.reset(sink.release());
843 static Sink* create_sink(const GrContextOptions& grCtxOptions, const SkCommandLineConfig* config) {
863 #define SINK(t, sink, ...) if (config->getBackend().equals(t)) { return new sink(__VA_ARGS__); }
869 SINK("565", RasterSink, kRGB_565_SkColorType);
870 SINK("8888", RasterSink, kN32_SkColorType);
871 SINK("srgb", RasterSink, kN32_SkColorType, srgbColorSpace);
872 SINK("f16", RasterSink, kRGBA_F16_SkColorType, srgbLinearColorSpace);
873 SINK("pdf", PDFSink);
874 SINK("skp", SKPSink);
875 SINK("pipe", PipeSink);
876 SINK("svg", SVGSink);
877 SINK("null", NullSink);
878 SINK("xps", XPSSink);
879 SINK("pdfa", PDFSink, true);
880 SINK("jsdebug", DebugSink);
882 #undef SINK
907 static Sink* create_via(const SkString& tag, Sink* wrapped) {
945 Sink* sink = create_sink(grCtxOptions, &config);
946 if (sink == nullptr) {
955 Sink* next = create_via(part, sink);
959 delete sink;
960 sink = nullptr;
963 sink = next;
965 if (sink) {
966 push_sink(config, sink);
971 // Otherwise, make sure that at least one sink was constructed correctly. This catches
1016 static bool is_blacklisted(const char* sink, const char* src,
1019 if (match(FLAGS_blacklist[i+0], sink) &&
1029 // Even when a Task Sink reports to be non-threadsafe (e.g. GPU), we know things like
1033 // The finest-grained unit of work we can run: draw a single Src into a single Sink,
1036 Task(const TaggedSrc& src, const TaggedSink& sink) : src(src), sink(sink) {}
1038 const TaggedSink& sink;
1047 start(task.sink.tag.c_str(), task.src.tag.c_str(),
1049 Error err = task.sink->draw(*task.src, &bitmap, &stream, &log);
1051 info("%s %s %s %s:\n%s\n", task.sink.tag.c_str()
1060 task.sink.tag.c_str(),
1066 done(task.sink.tag.c_str(), task.src.tag.c_str(),
1105 !gGold.contains(Gold(task.sink.tag, task.src.tag,
1109 task.sink.tag.c_str(),
1117 const char* ext = task.sink->fileExtension();
1127 done(task.sink.tag.c_str(), task.src.tag.c_str(), task.src.options.c_str(), name.c_str());
1142 result.config = task.sink.tag;
1171 path = SkOSPath::Join(dir, task.sink.tag.c_str());
1205 // Unit tests don't fit so well into the Src/Sink model, so we give them special treatment.
1331 for (auto& sink : gSinks)
1333 if (src->veto(sink->flags()) ||
1334 is_blacklisted(sink.tag.c_str(), src.tag.c_str(),
1341 Task task(src, sink);
1342 if (src->serial() || sink->serial()) {