1 #ifndef _ANDROID_GRAPHICS_BITMAP_FACTORY_H_ 2 #define _ANDROID_GRAPHICS_BITMAP_FACTORY_H_ 3 4 #include "GraphicsJNI.h" 5 #include "SkEncodedImageFormat.h" 6 7 extern jclass gOptions_class; 8 extern jfieldID gOptions_justBoundsFieldID; 9 extern jfieldID gOptions_sampleSizeFieldID; 10 extern jfieldID gOptions_configFieldID; 11 extern jfieldID gOptions_colorSpaceFieldID; 12 extern jfieldID gOptions_premultipliedFieldID; 13 extern jfieldID gOptions_ditherFieldID; 14 extern jfieldID gOptions_purgeableFieldID; 15 extern jfieldID gOptions_shareableFieldID; 16 extern jfieldID gOptions_nativeAllocFieldID; 17 extern jfieldID gOptions_preferQualityOverSpeedFieldID; 18 extern jfieldID gOptions_widthFieldID; 19 extern jfieldID gOptions_heightFieldID; 20 extern jfieldID gOptions_mimeFieldID; 21 extern jfieldID gOptions_outConfigFieldID; 22 extern jfieldID gOptions_outColorSpaceFieldID; 23 extern jfieldID gOptions_mCancelID; 24 extern jfieldID gOptions_bitmapFieldID; 25 26 extern jclass gBitmapConfig_class; 27 extern jmethodID gBitmapConfig_nativeToConfigMethodID; 28 29 jstring encodedFormatToString(JNIEnv* env, SkEncodedImageFormat format); 30 31 #endif // _ANDROID_GRAPHICS_BITMAP_FACTORY_H_ 32