Lines Matching refs:bitmap
32 Bitmap* bitmap = GraphicsJNI::getNativeBitmap(env, bitmapObj); in ABitmap_acquireBitmapFromJava() local
33 if (bitmap) { in ABitmap_acquireBitmapFromJava()
34 bitmap->ref(); in ABitmap_acquireBitmapFromJava()
35 return TypeCast::toABitmap(bitmap); in ABitmap_acquireBitmapFromJava()
40 void ABitmap_acquireRef(ABitmap* bitmap) { in ABitmap_acquireRef() argument
41 SkSafeRef(TypeCast::toBitmap(bitmap)); in ABitmap_acquireRef()
44 void ABitmap_releaseRef(ABitmap* bitmap) { in ABitmap_releaseRef() argument
45 SkSafeUnref(TypeCast::toBitmap(bitmap)); in ABitmap_releaseRef()
135 Bitmap* bitmap = TypeCast::toBitmap(bitmapHandle); in ABitmap_getInfo() local
136 return getInfo(bitmap->info(), bitmap->rowBytes(), bitmap->isHardware()); in ABitmap_getInfo()
140 Bitmap* bitmap = TypeCast::toBitmap(bitmapHandle); in ABitmap_getDataSpace() local
141 const SkImageInfo& info = bitmap->info(); in ABitmap_getDataSpace()
153 Bitmap* bitmap = TypeCast::toBitmap(bitmapHandle); in ABitmap_getPixels() local
154 if (bitmap->isHardware()) { in ABitmap_getPixels()
157 return bitmap->pixels(); in ABitmap_getPixels()
169 Bitmap* bitmap = TypeCast::toBitmap(bitmapHandle); in ABitmap_notifyPixelsChanged() local
170 if (!bitmap->isImmutable()) { in ABitmap_notifyPixelsChanged()
171 bitmap->notifyPixelsChanged(); in ABitmap_notifyPixelsChanged()
292 SkBitmap bitmap; in ABitmap_compress() local
295 if (!bitmap.installPixels(imageInfo, const_cast<void*>(pixels), info->stride)) { in ABitmap_compress()
300 return Bitmap::compress(bitmap, format, quality, &stream) ? ANDROID_BITMAP_RESULT_SUCCESS in ABitmap_compress()
305 Bitmap* bitmap = TypeCast::toBitmap(bitmapHandle); in ABitmap_getHardwareBuffer() local
306 AHardwareBuffer* buffer = bitmap->hardwareBuffer(); in ABitmap_getHardwareBuffer()