Home | History | Annotate | Download | only in image

Lines Matching defs:bitmap

132      *  On success (true), bitmap will point to the pixels for this generator. If this returns
133 * false, the bitmap will be reset to empty.
421 static bool check_output_bitmap(const SkBitmap& bitmap, uint32_t expectedID) {
422 SkASSERT(bitmap.getGenerationID() == expectedID);
423 SkASSERT(bitmap.isImmutable());
424 SkASSERT(bitmap.getPixels());
446 bool SkImage_Lazy::lockAsBitmapOnlyIfAlreadyCached(SkBitmap* bitmap, CachedFormat format) const {
449 fInfo.width(), fInfo.height()), bitmap) &&
450 check_output_bitmap(*bitmap, uniqueID);
492 bool SkImage_Lazy::lockAsBitmap(SkBitmap* bitmap, SkImage::CachingHint chint, CachedFormat format,
495 if (this->lockAsBitmapOnlyIfAlreadyCached(bitmap, format)) {
525 SkBitmapCache::Add(std::move(cacheRec), bitmap);
526 SkASSERT(bitmap->getPixels()); // we're locked
527 SkASSERT(bitmap->isImmutable());
528 SkASSERT(bitmap->getGenerationID() == uniqueID);
531 *bitmap = tmpBitmap;
532 bitmap->pixelRef()->setImmutableWithID(uniqueID);
535 check_output_bitmap(*bitmap, uniqueID);
573 bool SkImage_Lazy::getROPixels(SkBitmap* bitmap, SkColorSpace* dstColorSpace,
579 return this->lockAsBitmap(bitmap, chint, cacheFormat, genPixelsInfo, behavior);
831 SkBitmap bitmap;
832 if (!proxy && this->lockAsBitmap(&bitmap, chint, format, genPixelsInfo, behavior)) {
834 proxy = proxyProvider->createMipMapProxyFromBitmap(bitmap, dstColorSpace);
837 proxy = GrUploadBitmapToTextureProxy(proxyProvider, bitmap, dstColorSpace);