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.
422 static bool check_output_bitmap(const SkBitmap& bitmap, uint32_t expectedID) {
423 SkASSERT(bitmap.getGenerationID() == expectedID);
424 SkASSERT(bitmap.isImmutable());
425 SkASSERT(bitmap.getPixels());
447 bool SkImage_Lazy::lockAsBitmapOnlyIfAlreadyCached(SkBitmap* bitmap, CachedFormat format) const {
450 fInfo.width(), fInfo.height()), bitmap) &&
451 check_output_bitmap(*bitmap, uniqueID);
493 bool SkImage_Lazy::lockAsBitmap(SkBitmap* bitmap, SkImage::CachingHint chint, CachedFormat format,
496 if (this->lockAsBitmapOnlyIfAlreadyCached(bitmap, format)) {
526 SkBitmapCache::Add(std::move(cacheRec), bitmap);
527 SkASSERT(bitmap->getPixels()); // we're locked
528 SkASSERT(bitmap->isImmutable());
529 SkASSERT(bitmap->getGenerationID() == uniqueID);
532 *bitmap = tmpBitmap;
533 bitmap->pixelRef()->setImmutableWithID(uniqueID);
536 check_output_bitmap(*bitmap, uniqueID);
574 bool SkImage_Lazy::getROPixels(SkBitmap* bitmap, SkColorSpace* dstColorSpace,
580 return this->lockAsBitmap(bitmap, chint, cacheFormat, genPixelsInfo, behavior);
831 SkBitmap bitmap;
832 if (!proxy && this->lockAsBitmap(&bitmap, chint, format, genPixelsInfo, behavior)) {
834 proxy = GrGenerateMipMapsAndUploadToTextureProxy(proxyProvider, bitmap, dstColorSpace);
837 proxy = GrUploadBitmapToTextureProxy(proxyProvider, bitmap, dstColorSpace);