Lines Matching defs:surface
77 auto surface = SkSurface::MakeRasterN32Premul(FLAGS_width, FLAGS_height);
78 if (!surface) {
79 SkDebugf("Could not allocate a %d x %d surface.\n", FLAGS_width, FLAGS_height);
83 return std::unique_ptr<Sink>(new PNGSink(std::move(surface), scale_matrix));
87 PNGSink(sk_sp<SkSurface> surface, const SkMatrix& scale_matrix)
88 : fSurface(std::move(surface)) {
151 auto surface = SkSurface::MakeRasterN32Premul(FLAGS_width, FLAGS_height);
152 if (!surface) {
153 SkDebugf("Could not allocate a %d x %d surface.\n", FLAGS_width, FLAGS_height);
157 return std::unique_ptr<Sink>(new NullSink(std::move(surface), scale_matrix));
161 NullSink(sk_sp<SkSurface> surface, const SkMatrix& scale_matrix)
162 : fSurface(std::move(surface)) {