Lines Matching refs:pixmaps
54 Generator(SkYUVAPixmaps pixmaps, sk_sp<SkColorSpace> cs) in Generator() argument
55 : SkImageGenerator(SkImageInfo::Make(pixmaps.yuvaInfo().dimensions(), in Generator()
59 , fPixmaps(std::move(pixmaps)) {} in Generator()
120 bool onGetYUVAPlanes(const SkYUVAPixmaps& pixmaps) override { in onGetYUVAPlanes() argument
121 SkASSERT(pixmaps.yuvaInfo() == fPixmaps.yuvaInfo()); in onGetYUVAPlanes()
122 for (int i = 0; i < pixmaps.numPlanes(); ++i) { in onGetYUVAPlanes()
123 SkASSERT(fPixmaps.plane(i).colorType() == pixmaps.plane(i).colorType()); in onGetYUVAPlanes()
124 SkASSERT(fPixmaps.plane(i).dimensions() == pixmaps.plane(i).dimensions()); in onGetYUVAPlanes()
125 SkASSERT(fPixmaps.plane(i).rowBytes() == pixmaps.plane(i).rowBytes()); in onGetYUVAPlanes()
126 fPixmaps.plane(i).readPixels(pixmaps.plane(i)); in onGetYUVAPlanes()
200 std::unique_ptr<LazyYUVImage> LazyYUVImage::Make(SkYUVAPixmaps pixmaps, in Make() argument
204 if (image->reset(std::move(pixmaps), mipmapped, std::move(cs))) { in Make()
247 bool LazyYUVImage::reset(SkYUVAPixmaps pixmaps, GrMipmapped mipmapped, sk_sp<SkColorSpace> cs) { in reset() argument
248 if (!pixmaps.isValid()) { in reset()
252 if (pixmaps.ownsStorage()) { in reset()
253 fPixmaps = std::move(pixmaps); in reset()
255 fPixmaps = SkYUVAPixmaps::MakeCopy(std::move(pixmaps)); in reset()