Home
last modified time | relevance | path

Searched refs:nativeBitmap (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
DBitmap.java159 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
162 this(0, nativeBitmap, width, height, density, requestPremultiplied, ninePatchChunk, in Bitmap()
167 Bitmap(long id, long nativeBitmap, int width, int height, int density, in Bitmap() argument
170 if (nativeBitmap == 0) { in Bitmap()
184 mNativePtr = nativeBitmap; in Bitmap()
2532 private static native int nativeGetAshmemFD(long nativeBitmap); in nativeGetAshmemFD() argument
2534 private static native void nativeRecycle(long nativeBitmap); in nativeRecycle() argument
2536 private static native void nativeReconfigure(long nativeBitmap, int width, int height, in nativeReconfigure() argument
2539 private static native boolean nativeCompress(long nativeBitmap, int format, in nativeCompress() argument
2542 private static native void nativeErase(long nativeBitmap, int color); in nativeErase() argument
[all …]
DBaseRecordingCanvas.java713 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
DBaseCanvas.java818 private static native void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, in nDrawNinePatch() argument
/frameworks/base/libs/hwui/jni/
DImageDecoder.cpp343 sk_sp<Bitmap> nativeBitmap; in ImageDecoder_nDecodeBitmap() local
345 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in ImageDecoder_nDecodeBitmap()
347 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in ImageDecoder_nDecodeBitmap()
349 if (!nativeBitmap) { in ImageDecoder_nDecodeBitmap()
368 result = decoder->extractGainmap(nativeBitmap.get(), in ImageDecoder_nDecodeBitmap()
464 nativeBitmap->setAlphaType(newAlphaType); in ImageDecoder_nDecodeBitmap()
483 if (nativeBitmap->hasGainmap()) { in ImageDecoder_nDecodeBitmap()
484 auto gm = uirenderer::Gainmap::allocateHardwareGainmap(nativeBitmap->gainmap()); in ImageDecoder_nDecodeBitmap()
501 nativeBitmap->setImmutable(); in ImageDecoder_nDecodeBitmap()
504 uirenderer::logBitmapDecode(*nativeBitmap); in ImageDecoder_nDecodeBitmap()
[all …]
DBitmapRegionDecoder.cpp108 sk_sp<Bitmap> nativeBitmap = Bitmap::allocateHeapBitmap(SkImageInfo::Make( in decodeGainmapRegion() local
110 if (!nativeBitmap) { in decodeGainmapRegion()
170 RecyclingClippingPixelAllocator allocator(nativeBitmap.get(), false, logicalSubset); in decodeGainmapRegion()
183 gainmap->bitmap = std::move(nativeBitmap); in decodeGainmapRegion()
DBitmapFactory.cpp222 sk_sp<Bitmap> nativeBitmap = nullptr; in decodeGainmap() local
235 nativeBitmap = android::Bitmap::allocateHeapBitmap(&decodeBitmap); in decodeGainmap()
236 if (!nativeBitmap) { in decodeGainmap()
266 nativeBitmap = android::Bitmap::allocateHeapBitmap(&gainmapBitmap); in decodeGainmap()
267 if (!nativeBitmap) { in decodeGainmap()
292 gainmap->bitmap = std::move(nativeBitmap); in decodeGainmap()
DBitmap.cpp332 sk_sp<Bitmap> nativeBitmap = Bitmap::allocateHeapBitmap(&bitmap); in Bitmap_creator() local
333 if (!nativeBitmap) { in Bitmap_creator()
343 return createBitmap(env, nativeBitmap.release(), getPremulBitmapCreateFlags(isMutable)); in Bitmap_creator()
793 sk_sp<Bitmap> nativeBitmap; in Bitmap_createFromParcel() local
802 nativeBitmap = Bitmap::allocateHeapBitmap(allocationSize, imageInfo, rowBytes); in Bitmap_createFromParcel()
803 if (nativeBitmap) { in Bitmap_createFromParcel()
804 memcpy(nativeBitmap->pixels(), buffer.get(), allocationSize); in Bitmap_createFromParcel()
825 nativeBitmap = in Bitmap_createFromParcel()
837 if (error == STATUS_NO_MEMORY || !nativeBitmap) { in Bitmap_createFromParcel()
842 return createBitmap(env, nativeBitmap.release(), getPremulBitmapCreateFlags(isMutable), nullptr, in Bitmap_createFromParcel()
DGainmap.cpp81 auto nativeBitmap = gainmap->bitmap; in Gainmap_extractFromBitmap() local
82 const int createFlags = getCreateFlags(nativeBitmap); in Gainmap_extractFromBitmap()
83 jGainmapImage = bitmap::createBitmap(env, nativeBitmap.release(), createFlags); in Gainmap_extractFromBitmap()
/frameworks/base/libs/hwui/hwui/
DImageDecoder.cpp553 sk_sp<Bitmap> nativeBitmap; in extractGainmap() local
555 nativeBitmap = Bitmap::allocateAshmemBitmap(&bm); in extractGainmap()
557 nativeBitmap = Bitmap::allocateHeapBitmap(&bm); in extractGainmap()
559 if (!nativeBitmap) { in extractGainmap()
571 gainmap->bitmap = std::move(nativeBitmap); in extractGainmap()