Lines Matching defs:bitmap
130 bool SkImage_Lazy::getROPixels(GrDirectContext*, SkBitmap* bitmap,
132 auto check_output_bitmap = [bitmap]() {
133 SkASSERT(bitmap->isImmutable());
134 SkASSERT(bitmap->getPixels());
135 (void)bitmap;
139 if (SkBitmapCache::Find(desc, bitmap)) {
150 SkBitmapCache::Add(std::move(cacheRec), bitmap);
153 if (!bitmap->tryAllocPixels(this->imageInfo()) ||
154 !ScopedGenerator(fSharedGenerator)->getPixels(bitmap->pixmap())) {
157 bitmap->setImmutable();
231 // We allocate the bitmap with the new color space, then generate the image using the original.
232 SkBitmap bitmap;
233 if (bitmap.tryAllocPixels(this->imageInfo().makeColorSpace(std::move(newCS)))) {
234 SkPixmap pixmap = bitmap.pixmap();
237 bitmap.setImmutable();
238 return bitmap.asImage();
311 SkBitmap bitmap;
312 bitmap.installPixels(yuvaPixmaps.plane(i).info(),
317 bitmap.setImmutable();
320 bitmap,
326 pixmapColorTypes[i] = SkColorTypeToGrColorType(bitmap.colorType());
503 // 4. Ask the generator to return a bitmap, which the GPU can convert.
506 if (SkBitmap bitmap; this->getROPixels(nullptr, &bitmap, hint)) {
507 // We always make an uncached bitmap here because we will cache it based on passed in policy
508 // with *our* key, not a key derived from bitmap. We're just making the proxy here.
513 bitmap,