Lines Matching refs:addr
89 void* addr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in allocateAshmemBitmap() local
90 if (addr == MAP_FAILED) { in allocateAshmemBitmap()
96 munmap(addr, size); in allocateAshmemBitmap()
100 return sk_sp<Bitmap>(new Bitmap(addr, fd, size, info, rowBytes)); in allocateAshmemBitmap()
128 void* addr = calloc(size, 1); in allocateHeapBitmap() local
129 if (!addr) { in allocateHeapBitmap()
132 return sk_sp<Bitmap>(new Bitmap(addr, size, info, rowBytes)); in allocateHeapBitmap()
135 void FreePixelRef(void* addr, void* context) { in FreePixelRef() argument
175 sk_sp<Bitmap> Bitmap::createFrom(const SkImageInfo& info, size_t rowBytes, int fd, void* addr, in createFrom() argument
185 if (!addr) { in createFrom()
189 addr = mmap(NULL, size, flags, MAP_SHARED, fd, 0); in createFrom()
190 if (addr == MAP_FAILED) { in createFrom()
195 sk_sp<Bitmap> bitmap(new Bitmap(addr, fd, size, info, rowBytes)); in createFrom()
421 BitmapPalette Bitmap::computePalette(const SkImageInfo& info, const void* addr, size_t rowBytes) { in computePalette() argument
424 SkPixmap pixmap{info, addr, rowBytes}; in computePalette()