24 , fCString(
env->GetStringUTFChars(jstr, nullptr))
28 fEnv->ReleaseStringUTFChars(fJString, fCString);
31 const char*
str()
const {
return fCString; }
32 operator const char*()
const {
return fCString; }
36 const jstring& fJString;
51 , fU16String(
env->GetStringChars(jstr, nullptr))
55 fEnv->ReleaseStringChars(fJString, fU16String);
58 operator const char16_t*()
const {
return reinterpret_cast<const char16_t*
>(fU16String); }
62 const jstring& fJString;
63 const jchar* fU16String;
78 , fCFloats(
env->GetFloatArrayElements(jfloats, nullptr))
82 fEnv->ReleaseFloatArrayElements(fJFloats, fCFloats, 0);
85 operator const float*()
const {
return fCFloats; }
89 const jfloatArray& fJFloats;
CFloats(JNIEnv *env, const jfloatArray &jfloats)
CString(JNIEnv *env, const jstring &jstr)
U16String(JNIEnv *env, const jstring &jstr)
SkTileMode TileMode(jint tm)
SkBlendMode BlendMode(jint bm)
SkSamplingOptions SamplingOptions(jint desc, jfloat coeffB, jfloat coeffC)