Lines Matching refs:scale_matrix
76 static std::unique_ptr<Sink> Make(const SkMatrix& scale_matrix) { in Make() argument
83 return std::unique_ptr<Sink>(new PNGSink(std::move(surface), scale_matrix)); in Make()
87 PNGSink(sk_sp<SkSurface> surface, const SkMatrix& scale_matrix) in PNGSink() argument
89 fSurface->getCanvas()->concat(scale_matrix); in PNGSink()
120 static std::unique_ptr<Sink> Make(const SkMatrix& scale_matrix) { in Make() argument
121 return std::unique_ptr<Sink>(new SKPSink(scale_matrix)); in Make()
125 explicit SKPSink(const SkMatrix& scale_matrix) in SKPSink() argument
126 : fScaleMatrix(scale_matrix) {} in SKPSink()
150 static std::unique_ptr<Sink> Make(const SkMatrix& scale_matrix) { in Make() argument
157 return std::unique_ptr<Sink>(new NullSink(std::move(surface), scale_matrix)); in Make()
161 NullSink(sk_sp<SkSurface> surface, const SkMatrix& scale_matrix) in NullSink() argument
163 fSurface->getCanvas()->concat(scale_matrix); in NullSink()
182 explicit MP4Sink(const SkMatrix& scale_matrix) in MP4Sink()
184 fSurface->getCanvas()->concat(scale_matrix); in MP4Sink()
237 std::unique_ptr<Sink> MakeSink(const char* fmt, const SkMatrix& scale_matrix) { in MakeSink() argument
238 if (0 == strcmp(fmt, "png")) return PNGSink::Make(scale_matrix); in MakeSink()
239 if (0 == strcmp(fmt, "skp")) return SKPSink::Make(scale_matrix); in MakeSink()
240 if (0 == strcmp(fmt, "null")) return NullSink::Make(scale_matrix); in MakeSink()
241 if (0 == strcmp(fmt, "mp4")) return std::make_unique<MP4Sink>(scale_matrix); in MakeSink()
292 const auto scale_matrix = SkMatrix::RectToRect(SkRect::MakeSize(anim->size()), in main() local
345 thread_local static auto* sink = MakeSink(FLAGS_format[0], scale_matrix).release(); in main()