Lines Matching refs:bitmap
41 SkBitmap* bitmap) { in copySurfaceInto() argument
54 return copySurfaceIntoLegacy(window, inSrcRect, bitmap); in copySurfaceInto()
120 bitmap->info(), 0, kTopLeft_GrSurfaceOrigin, nullptr); in copySurfaceInto()
125 SkImageInfo tmpInfo = bitmap->info().makeColorType(SkColorType::kN32_SkColorType); in copySurfaceInto()
172 SK_RECT_ARGS(SkRect::MakeWH(bitmap->width(), bitmap->height()))); in copySurfaceInto()
174 SkRect::MakeWH(bitmap->width(), bitmap->height()), in copySurfaceInto()
176 if (srcRect.width() != bitmap->width() || srcRect.height() != bitmap->height()) { in copySurfaceInto()
192 if (!tmpSurface->readPixels(*bitmap, 0, 0)) { in copySurfaceInto()
196 SkImageInfo tmpInfo = bitmap->info().makeColorType(SkColorType::kN32_SkColorType); in copySurfaceInto()
197 if (bitmap->info().colorType() == SkColorType::kN32_SkColorType || in copySurfaceInto()
199 !tmpBitmap.readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), 0, 0)) { in copySurfaceInto()
205 bitmap->notifyPixelsChanged(); in copySurfaceInto()
211 SkBitmap* bitmap) { in copySurfaceIntoLegacy() argument
246 return copyImageInto(image, texTransform, srcRect, bitmap); in copySurfaceIntoLegacy()
249 CopyResult Readback::copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap) { in copyHWBitmapInto() argument
257 return copyImageInto(hwBitmap->makeImage(), transform, srcRect, bitmap); in copyHWBitmapInto()
260 CopyResult Readback::copyLayerInto(DeferredLayerUpdater* deferredLayer, SkBitmap* bitmap) { in copyLayerInto() argument
269 const SkRect dstRect = SkRect::MakeIWH(bitmap->width(), bitmap->height()); in copyLayerInto()
273 if (copyLayerInto(layer, nullptr, &dstRect, bitmap)) { in copyLayerInto()
280 CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, SkBitmap* bitmap) { in copyImageInto() argument
285 return copyImageInto(image, transform, srcRect, bitmap); in copyImageInto()
289 const Rect& srcRect, SkBitmap* bitmap) { in copyImageInto() argument
311 SkRect skiaDestRect = SkRect::MakeWH(bitmap->width(), bitmap->height()); in copyImageInto()
327 if (copyLayerInto(&layer, &skiaSrcRect, &skiaDestRect, bitmap)) { in copyImageInto()
335 SkBitmap* bitmap) { in copyLayerInto() argument
342 SkBudgeted::kYes, bitmap->info(), 0, in copyLayerInto()
348 SkImageInfo tmpInfo = bitmap->info().makeColorType(SkColorType::kN32_SkColorType); in copyLayerInto()
364 if (!tmpSurface->readPixels(*bitmap, 0, 0)) { in copyLayerInto()
368 SkImageInfo tmpInfo = bitmap->info().makeColorType(SkColorType::kN32_SkColorType); in copyLayerInto()
369 if (bitmap->info().colorType() == SkColorType::kN32_SkColorType || in copyLayerInto()
372 !tmpBitmap.readPixels(bitmap->info(), bitmap->getPixels(), in copyLayerInto()
373 bitmap->rowBytes(), 0, 0)) { in copyLayerInto()
379 bitmap->notifyPixelsChanged(); in copyLayerInto()