Searched defs:javaBitmap (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp133 jobject javaBitmap = NULL; local
145 javaBitmap = env->GetObjectField(options, gOptions_bitmapFieldID);
167 if (javaBitmap) {
168 recycledBitmap = &bitmap::toBitmap(env, javaBitmap);
172 recycledBytes = bitmap::getBitmapAllocationByteCount(env, javaBitmap);
179 if (javaBitmap) {
219 if (javaBitmap) {
221 bitmap::reinitBitmap(env, javaBitmap, recycledBitmap->info(), !requireUnpremul);
222 return javaBitmap;
H A DBitmapFactory.cpp248 jobject javaBitmap = NULL; local
278 javaBitmap = env->GetObjectField(options, gOptions_bitmapFieldID);
373 if (javaBitmap != NULL) {
374 reuseBitmap = &bitmap::toBitmap(env, javaBitmap);
377 javaBitmap = NULL;
380 existingBufferSize = bitmap::getBitmapAllocationByteCount(env, javaBitmap);
389 if (javaBitmap != nullptr && willScale) {
392 // also checks that the recycled javaBitmap is large enough.
394 } else if (javaBitmap != nullptr) {
450 // native heap, or the recycled javaBitmap bein
[all...]
H A DBitmap.cpp183 void reinitBitmap(JNIEnv* env, jobject javaBitmap, const SkImageInfo& info, argument
190 env->CallVoidMethod(javaBitmap, gBitmap_reinitMethodID,
194 int getBitmapAllocationByteCount(JNIEnv* env, jobject javaBitmap) argument
196 return env->CallIntMethod(javaBitmap, gBitmap_getAllocationByteCountMethodID);

Completed in 68 milliseconds