• Home
  • Raw
  • Download

Lines Matching refs:bitmap

41                                      SkBitmap* bitmap) {  in copySurfaceInto()  argument
54 return copySurfaceIntoLegacy(window, inSrcRect, bitmap); in copySurfaceInto()
145 bitmap->info(), 0, kTopLeft_GrSurfaceOrigin, nullptr); in copySurfaceInto()
150 SkImageInfo tmpInfo = bitmap->info().makeColorType(SkColorType::kN32_SkColorType); in copySurfaceInto()
197 SK_RECT_ARGS(SkRect::MakeWH(bitmap->width(), bitmap->height()))); in copySurfaceInto()
199 SkRect::MakeWH(bitmap->width(), bitmap->height()), in copySurfaceInto()
201 if (srcRect.width() != bitmap->width() || srcRect.height() != bitmap->height()) { in copySurfaceInto()
217 if (!tmpSurface->readPixels(*bitmap, 0, 0)) { in copySurfaceInto()
221 SkImageInfo tmpInfo = bitmap->info().makeColorType(SkColorType::kN32_SkColorType); in copySurfaceInto()
222 if (bitmap->info().colorType() == SkColorType::kN32_SkColorType || in copySurfaceInto()
224 !tmpBitmap.readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), 0, 0)) { in copySurfaceInto()
230 bitmap->notifyPixelsChanged(); in copySurfaceInto()
236 SkBitmap* bitmap) { in copySurfaceIntoLegacy() argument
271 return copyImageInto(image, srcRect, bitmap); in copySurfaceIntoLegacy()
274 CopyResult Readback::copyHWBitmapInto(Bitmap* hwBitmap, SkBitmap* bitmap) { in copyHWBitmapInto() argument
278 return copyImageInto(hwBitmap->makeImage(), srcRect, bitmap); in copyHWBitmapInto()
281 CopyResult Readback::copyLayerInto(DeferredLayerUpdater* deferredLayer, SkBitmap* bitmap) { in copyLayerInto() argument
290 const SkRect dstRect = SkRect::MakeIWH(bitmap->width(), bitmap->height()); in copyLayerInto()
294 if (copyLayerInto(layer, nullptr, &dstRect, bitmap)) { in copyLayerInto()
301 CopyResult Readback::copyImageInto(const sk_sp<SkImage>& image, SkBitmap* bitmap) { in copyImageInto() argument
303 return copyImageInto(image, srcRect, bitmap); in copyImageInto()
307 SkBitmap* bitmap) { in copyImageInto() argument
324 SkRect skiaDestRect = SkRect::MakeWH(bitmap->width(), bitmap->height()); in copyImageInto()
339 if (copyLayerInto(&layer, &skiaSrcRect, &skiaDestRect, bitmap)) { in copyImageInto()
347 SkBitmap* bitmap) { in copyLayerInto() argument
354 SkBudgeted::kYes, bitmap->info(), 0, in copyLayerInto()
360 SkImageInfo tmpInfo = bitmap->info().makeColorType(SkColorType::kN32_SkColorType); in copyLayerInto()
376 if (!tmpSurface->readPixels(*bitmap, 0, 0)) { in copyLayerInto()
380 SkImageInfo tmpInfo = bitmap->info().makeColorType(SkColorType::kN32_SkColorType); in copyLayerInto()
381 if (bitmap->info().colorType() == SkColorType::kN32_SkColorType || in copyLayerInto()
384 !tmpBitmap.readPixels(bitmap->info(), bitmap->getPixels(), in copyLayerInto()
385 bitmap->rowBytes(), 0, 0)) { in copyLayerInto()
391 bitmap->notifyPixelsChanged(); in copyLayerInto()