49 |
namespace Vob { |
namespace Vob { |
50 |
namespace JNI { |
namespace JNI { |
51 |
|
|
52 |
|
DBGVAR(dbg_texaccum, "JNI.texaccum"); |
53 |
|
|
54 |
Stats::Statistics statistics; |
Stats::Statistics statistics; |
55 |
|
|
56 |
ObjectStorer<TexAccum_JNI> texaccums("texaccums"); |
ObjectStorer<TexAccum_JNI> texaccums("texaccums"); |
85 |
|
|
86 |
jf( jint, impl_1TexAccum_1create ) |
jf( jint, impl_1TexAccum_1create ) |
87 |
(JNIEnv *env, jclass) { |
(JNIEnv *env, jclass) { |
88 |
|
DBG(dbg_texaccum)<<"Create without cb\n"; |
89 |
TexAccum_JNI *accum = new TexAccum_JNI(env, 0, 0); |
TexAccum_JNI *accum = new TexAccum_JNI(env, 0, 0); |
90 |
return texaccums.add(accum); |
return texaccums.add(accum); |
91 |
} |
} |
92 |
|
|
93 |
jf( jint, impl_1TexAccum_1create_1cb ) |
jf( jint, impl_1TexAccum_1create_1cb ) |
94 |
(JNIEnv *env, jclass, jobject cb) { |
(JNIEnv *env, jclass, jobject cb) { |
95 |
|
DBG(dbg_texaccum)<<"Create with cb: "<<cb<<"\n"; |
96 |
TexAccum_JNI *accum = new TexAccum_JNI(env, &statistics, cb); |
TexAccum_JNI *accum = new TexAccum_JNI(env, &statistics, cb); |
97 |
if(!globalclass_WeakStatsCaller) { |
if(!globalclass_WeakStatsCaller) { |
98 |
globalclass_WeakStatsCaller = |
globalclass_WeakStatsCaller = |