Lines Matching refs:bitmap
38 CopyResult Readback::copySurfaceInto(Surface& surface, const Rect& srcRect, SkBitmap* bitmap) { in copySurfaceInto() argument
72 return copyImageInto(image, texTransform, srcRect, bitmap); in copySurfaceInto()
75 CopyResult Readback::copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap) { in copyHWBitmapInto() argument
83 return copyImageInto(hwBitmap->makeImage(), transform, srcRect, bitmap); in copyHWBitmapInto()
86 CopyResult Readback::copyLayerInto(DeferredLayerUpdater* deferredLayer, SkBitmap* bitmap) { in copyLayerInto() argument
95 const SkRect dstRect = SkRect::MakeIWH(bitmap->width(), bitmap->height()); in copyLayerInto()
99 if (copyLayerInto(layer, nullptr, &dstRect, bitmap)) { in copyLayerInto()
107 const Rect& srcRect, SkBitmap* bitmap) { in copyImageInto() argument
121 if (bitmap->colorType() == kRGBA_F16_SkColorType && in copyImageInto()
122 !grContext->colorTypeSupportedAsSurface(bitmap->colorType())) { in copyImageInto()
135 SkRect skiaDestRect = SkRect::MakeWH(bitmap->width(), bitmap->height()); in copyImageInto()
152 if (copyLayerInto(&layer, &skiaSrcRect, &skiaDestRect, bitmap)) { in copyImageInto()
160 SkBitmap* bitmap) { in copyLayerInto() argument
169 SkBudgeted::kYes, bitmap->info(), 0, in copyLayerInto()
175 SkImageInfo tmpInfo = bitmap->info().makeColorType(SkColorType::kN32_SkColorType); in copyLayerInto()
191 if (!tmpSurface->readPixels(*bitmap, 0, 0)) { in copyLayerInto()
195 SkImageInfo tmpInfo = bitmap->info().makeColorType(SkColorType::kN32_SkColorType); in copyLayerInto()
196 if (bitmap->info().colorType() == SkColorType::kN32_SkColorType || in copyLayerInto()
199 !tmpBitmap.readPixels(bitmap->info(), bitmap->getPixels(), in copyLayerInto()
200 bitmap->rowBytes(), 0, 0)) { in copyLayerInto()
206 bitmap->notifyPixelsChanged(); in copyLayerInto()