Home
last modified time | relevance | path

Searched refs:javaBitmap (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DBitmapRegionDecoder.cpp133 jobject javaBitmap = NULL; in nativeDecodeRegion() local
145 javaBitmap = env->GetObjectField(options, gOptions_bitmapFieldID); in nativeDecodeRegion()
161 if (javaBitmap) { in nativeDecodeRegion()
162 recycledBitmap = &bitmap::toBitmap(env, javaBitmap); in nativeDecodeRegion()
166 recycledBytes = bitmap::getBitmapAllocationByteCount(env, javaBitmap); in nativeDecodeRegion()
176 if (javaBitmap) { in nativeDecodeRegion()
219 if (javaBitmap) { in nativeDecodeRegion()
221 bitmap::reinitBitmap(env, javaBitmap, recycledBitmap->info(), !requireUnpremul); in nativeDecodeRegion()
222 return javaBitmap; in nativeDecodeRegion()
DBitmapFactory.cpp191 jobject javaBitmap = NULL; in doDecode() local
221 javaBitmap = env->GetObjectField(options, gOptions_bitmapFieldID); in doDecode()
322 if (javaBitmap != NULL) { in doDecode()
323 reuseBitmap = &bitmap::toBitmap(env, javaBitmap); in doDecode()
326 javaBitmap = NULL; in doDecode()
329 existingBufferSize = bitmap::getBitmapAllocationByteCount(env, javaBitmap); in doDecode()
338 if (javaBitmap != nullptr && willScale) { in doDecode()
343 } else if (javaBitmap != nullptr) { in doDecode()
435 if (javaBitmap != NULL) { in doDecode()
436 env->SetObjectField(javaBitmap, gBitmap_ninePatchInsetsFieldID, ninePatchInsets); in doDecode()
[all …]
DBitmap.h56 void reinitBitmap(JNIEnv* env, jobject javaBitmap, const SkImageInfo& info,
59 int getBitmapAllocationByteCount(JNIEnv* env, jobject javaBitmap);
DBitmap.cpp183 void reinitBitmap(JNIEnv* env, jobject javaBitmap, const SkImageInfo& info, in reinitBitmap() argument
190 env->CallVoidMethod(javaBitmap, gBitmap_reinitMethodID, in reinitBitmap()
194 int getBitmapAllocationByteCount(JNIEnv* env, jobject javaBitmap) in getBitmapAllocationByteCount() argument
196 return env->CallIntMethod(javaBitmap, gBitmap_getAllocationByteCountMethodID); in getBitmapAllocationByteCount()