Lines Matching refs:pixmaps
51 Generator(SkYUVAPixmaps pixmaps, sk_sp<SkColorSpace> cs) in Generator() argument
52 : SkImageGenerator(SkImageInfo::Make(pixmaps.yuvaInfo().dimensions(), in Generator()
56 , fPixmaps(std::move(pixmaps)) {} in Generator()
117 bool onGetYUVAPlanes(const SkYUVAPixmaps& pixmaps) override { in onGetYUVAPlanes() argument
118 SkASSERT(pixmaps.yuvaInfo() == fPixmaps.yuvaInfo()); in onGetYUVAPlanes()
119 for (int i = 0; i < pixmaps.numPlanes(); ++i) { in onGetYUVAPlanes()
120 SkASSERT(fPixmaps.plane(i).colorType() == pixmaps.plane(i).colorType()); in onGetYUVAPlanes()
121 SkASSERT(fPixmaps.plane(i).dimensions() == pixmaps.plane(i).dimensions()); in onGetYUVAPlanes()
122 SkASSERT(fPixmaps.plane(i).rowBytes() == pixmaps.plane(i).rowBytes()); in onGetYUVAPlanes()
123 fPixmaps.plane(i).readPixels(pixmaps.plane(i)); in onGetYUVAPlanes()
148 std::unique_ptr<LazyYUVImage> LazyYUVImage::Make(SkYUVAPixmaps pixmaps, in Make() argument
152 if (image->reset(std::move(pixmaps), mipmapped, std::move(cs))) { in Make()
195 bool LazyYUVImage::reset(SkYUVAPixmaps pixmaps, GrMipmapped mipmapped, sk_sp<SkColorSpace> cs) { in reset() argument
196 if (!pixmaps.isValid()) { in reset()
200 if (pixmaps.ownsStorage()) { in reset()
201 fPixmaps = std::move(pixmaps); in reset()
203 fPixmaps = SkYUVAPixmaps::MakeCopy(std::move(pixmaps)); in reset()