Loading graphics/java/android/renderscript/ProgramStore.java +7 −7 Original line number Diff line number Diff line Loading @@ -147,17 +147,17 @@ public class ProgramStore extends BaseObj { if (b.mOut != null) { outID = b.mOut.mID; } rs.nProgramFragmentStoreBegin(inID, outID); rs.nProgramFragmentStoreDepthFunc(b.mDepthFunc.mID); rs.nProgramFragmentStoreDepthMask(b.mDepthMask); rs.nProgramFragmentStoreColorMask(b.mColorMaskR, rs.nProgramStoreBegin(inID, outID); rs.nProgramStoreDepthFunc(b.mDepthFunc.mID); rs.nProgramStoreDepthMask(b.mDepthMask); rs.nProgramStoreColorMask(b.mColorMaskR, b.mColorMaskG, b.mColorMaskB, b.mColorMaskA); rs.nProgramFragmentStoreBlendFunc(b.mBlendSrc.mID, b.mBlendDst.mID); rs.nProgramFragmentStoreDither(b.mDither); rs.nProgramStoreBlendFunc(b.mBlendSrc.mID, b.mBlendDst.mID); rs.nProgramStoreDither(b.mDither); int id = rs.nProgramFragmentStoreCreate(); int id = rs.nProgramStoreCreate(); return new ProgramStore(id, rs); } Loading graphics/java/android/renderscript/RenderScript.java +8 −8 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ public class RenderScript { native void nContextBindRootScript(int script); native void nContextBindSampler(int sampler, int slot); native void nContextBindProgramFragmentStore(int pfs); native void nContextBindProgramStore(int pfs); native void nContextBindProgramFragment(int pf); native void nContextBindProgramVertex(int pf); native void nContextBindProgramRaster(int pr); Loading Loading @@ -154,13 +154,13 @@ public class RenderScript { native void nSamplerSet(int param, int value); native int nSamplerCreate(); native void nProgramFragmentStoreBegin(int in, int out); native void nProgramFragmentStoreDepthFunc(int func); native void nProgramFragmentStoreDepthMask(boolean enable); native void nProgramFragmentStoreColorMask(boolean r, boolean g, boolean b, boolean a); native void nProgramFragmentStoreBlendFunc(int src, int dst); native void nProgramFragmentStoreDither(boolean enable); native int nProgramFragmentStoreCreate(); native void nProgramStoreBegin(int in, int out); native void nProgramStoreDepthFunc(int func); native void nProgramStoreDepthMask(boolean enable); native void nProgramStoreColorMask(boolean r, boolean g, boolean b, boolean a); native void nProgramStoreBlendFunc(int src, int dst); native void nProgramStoreDither(boolean enable); native int nProgramStoreCreate(); native int nProgramRasterCreate(int in, int out, boolean pointSmooth, boolean lineSmooth, boolean pointSprite); native void nProgramRasterSetLineWidth(int pr, float v); Loading graphics/java/android/renderscript/RenderScriptGL.java +2 −2 Original line number Diff line number Diff line Loading @@ -74,9 +74,9 @@ public class RenderScriptGL extends RenderScript { nContextBindRootScript(safeID(s)); } public void contextBindProgramFragmentStore(ProgramStore p) { public void contextBindProgramStore(ProgramStore p) { validate(); nContextBindProgramFragmentStore(safeID(p)); nContextBindProgramStore(safeID(p)); } public void contextBindProgramFragment(ProgramFragment p) { Loading graphics/jni/android_renderscript_RenderScript.cpp +32 −32 Original line number Diff line number Diff line Loading @@ -1042,60 +1042,60 @@ nScriptCAddDefineF(JNIEnv *_env, jobject _this, jstring name, jfloat value) // --------------------------------------------------------------------------- static void nProgramFragmentStoreBegin(JNIEnv *_env, jobject _this, jint in, jint out) nProgramStoreBegin(JNIEnv *_env, jobject _this, jint in, jint out) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreBegin, con(%p), in(%p), out(%p)", con, (RsElement)in, (RsElement)out); rsProgramFragmentStoreBegin(con, (RsElement)in, (RsElement)out); LOG_API("nProgramStoreBegin, con(%p), in(%p), out(%p)", con, (RsElement)in, (RsElement)out); rsProgramStoreBegin(con, (RsElement)in, (RsElement)out); } static void nProgramFragmentStoreDepthFunc(JNIEnv *_env, jobject _this, jint func) nProgramStoreDepthFunc(JNIEnv *_env, jobject _this, jint func) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreDepthFunc, con(%p), func(%i)", con, func); rsProgramFragmentStoreDepthFunc(con, (RsDepthFunc)func); LOG_API("nProgramStoreDepthFunc, con(%p), func(%i)", con, func); rsProgramStoreDepthFunc(con, (RsDepthFunc)func); } static void nProgramFragmentStoreDepthMask(JNIEnv *_env, jobject _this, jboolean enable) nProgramStoreDepthMask(JNIEnv *_env, jobject _this, jboolean enable) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreDepthMask, con(%p), enable(%i)", con, enable); rsProgramFragmentStoreDepthMask(con, enable); LOG_API("nProgramStoreDepthMask, con(%p), enable(%i)", con, enable); rsProgramStoreDepthMask(con, enable); } static void nProgramFragmentStoreColorMask(JNIEnv *_env, jobject _this, jboolean r, jboolean g, jboolean b, jboolean a) nProgramStoreColorMask(JNIEnv *_env, jobject _this, jboolean r, jboolean g, jboolean b, jboolean a) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreColorMask, con(%p), r(%i), g(%i), b(%i), a(%i)", con, r, g, b, a); rsProgramFragmentStoreColorMask(con, r, g, b, a); LOG_API("nProgramStoreColorMask, con(%p), r(%i), g(%i), b(%i), a(%i)", con, r, g, b, a); rsProgramStoreColorMask(con, r, g, b, a); } static void nProgramFragmentStoreBlendFunc(JNIEnv *_env, jobject _this, int src, int dst) nProgramStoreBlendFunc(JNIEnv *_env, jobject _this, int src, int dst) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreBlendFunc, con(%p), src(%i), dst(%i)", con, src, dst); rsProgramFragmentStoreBlendFunc(con, (RsBlendSrcFunc)src, (RsBlendDstFunc)dst); LOG_API("nProgramStoreBlendFunc, con(%p), src(%i), dst(%i)", con, src, dst); rsProgramStoreBlendFunc(con, (RsBlendSrcFunc)src, (RsBlendDstFunc)dst); } static void nProgramFragmentStoreDither(JNIEnv *_env, jobject _this, jboolean enable) nProgramStoreDither(JNIEnv *_env, jobject _this, jboolean enable) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreDither, con(%p), enable(%i)", con, enable); rsProgramFragmentStoreDither(con, enable); LOG_API("nProgramStoreDither, con(%p), enable(%i)", con, enable); rsProgramStoreDither(con, enable); } static jint nProgramFragmentStoreCreate(JNIEnv *_env, jobject _this) nProgramStoreCreate(JNIEnv *_env, jobject _this) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreCreate, con(%p)", con); LOG_API("nProgramStoreCreate, con(%p)", con); return (jint)rsProgramFragmentStoreCreate(con); return (jint)rsProgramStoreCreate(con); } // --------------------------------------------------------------------------- Loading Loading @@ -1225,11 +1225,11 @@ nContextBindRootScript(JNIEnv *_env, jobject _this, jint script) } static void nContextBindProgramFragmentStore(JNIEnv *_env, jobject _this, jint pfs) nContextBindProgramStore(JNIEnv *_env, jobject _this, jint pfs) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nContextBindProgramFragmentStore, con(%p), pfs(%p)", con, (RsProgramFragmentStore)pfs); rsContextBindProgramFragmentStore(con, (RsProgramFragmentStore)pfs); LOG_API("nContextBindProgramStore, con(%p), pfs(%p)", con, (RsProgramStore)pfs); rsContextBindProgramStore(con, (RsProgramStore)pfs); } static void Loading Loading @@ -1453,13 +1453,13 @@ static JNINativeMethod methods[] = { {"nScriptCSetScript", "([BII)V", (void*)nScriptCSetScript }, {"nScriptCCreate", "()I", (void*)nScriptCCreate }, {"nProgramFragmentStoreBegin", "(II)V", (void*)nProgramFragmentStoreBegin }, {"nProgramFragmentStoreDepthFunc", "(I)V", (void*)nProgramFragmentStoreDepthFunc }, {"nProgramFragmentStoreDepthMask", "(Z)V", (void*)nProgramFragmentStoreDepthMask }, {"nProgramFragmentStoreColorMask", "(ZZZZ)V", (void*)nProgramFragmentStoreColorMask }, {"nProgramFragmentStoreBlendFunc", "(II)V", (void*)nProgramFragmentStoreBlendFunc }, {"nProgramFragmentStoreDither", "(Z)V", (void*)nProgramFragmentStoreDither }, {"nProgramFragmentStoreCreate", "()I", (void*)nProgramFragmentStoreCreate }, {"nProgramStoreBegin", "(II)V", (void*)nProgramStoreBegin }, {"nProgramStoreDepthFunc", "(I)V", (void*)nProgramStoreDepthFunc }, {"nProgramStoreDepthMask", "(Z)V", (void*)nProgramStoreDepthMask }, {"nProgramStoreColorMask", "(ZZZZ)V", (void*)nProgramStoreColorMask }, {"nProgramStoreBlendFunc", "(II)V", (void*)nProgramStoreBlendFunc }, {"nProgramStoreDither", "(Z)V", (void*)nProgramStoreDither }, {"nProgramStoreCreate", "()I", (void*)nProgramStoreCreate }, {"nProgramBindConstants", "(III)V", (void*)nProgramBindConstants }, {"nProgramBindTexture", "(III)V", (void*)nProgramBindTexture }, Loading @@ -1483,7 +1483,7 @@ static JNINativeMethod methods[] = { {"nLightSetPosition", "(IFFF)V", (void*)nLightSetPosition }, {"nContextBindRootScript", "(I)V", (void*)nContextBindRootScript }, {"nContextBindProgramFragmentStore","(I)V", (void*)nContextBindProgramFragmentStore }, {"nContextBindProgramStore", "(I)V", (void*)nContextBindProgramStore }, {"nContextBindProgramFragment", "(I)V", (void*)nContextBindProgramFragment }, {"nContextBindProgramVertex", "(I)V", (void*)nContextBindProgramVertex }, {"nContextBindProgramRaster", "(I)V", (void*)nContextBindProgramRaster }, Loading libs/rs/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -91,7 +91,7 @@ LOCAL_SRC_FILES:= \ rsNoise.cpp \ rsProgram.cpp \ rsProgramFragment.cpp \ rsProgramFragmentStore.cpp \ rsProgramStore.cpp \ rsProgramRaster.cpp \ rsProgramVertex.cpp \ rsSampler.cpp \ Loading Loading
graphics/java/android/renderscript/ProgramStore.java +7 −7 Original line number Diff line number Diff line Loading @@ -147,17 +147,17 @@ public class ProgramStore extends BaseObj { if (b.mOut != null) { outID = b.mOut.mID; } rs.nProgramFragmentStoreBegin(inID, outID); rs.nProgramFragmentStoreDepthFunc(b.mDepthFunc.mID); rs.nProgramFragmentStoreDepthMask(b.mDepthMask); rs.nProgramFragmentStoreColorMask(b.mColorMaskR, rs.nProgramStoreBegin(inID, outID); rs.nProgramStoreDepthFunc(b.mDepthFunc.mID); rs.nProgramStoreDepthMask(b.mDepthMask); rs.nProgramStoreColorMask(b.mColorMaskR, b.mColorMaskG, b.mColorMaskB, b.mColorMaskA); rs.nProgramFragmentStoreBlendFunc(b.mBlendSrc.mID, b.mBlendDst.mID); rs.nProgramFragmentStoreDither(b.mDither); rs.nProgramStoreBlendFunc(b.mBlendSrc.mID, b.mBlendDst.mID); rs.nProgramStoreDither(b.mDither); int id = rs.nProgramFragmentStoreCreate(); int id = rs.nProgramStoreCreate(); return new ProgramStore(id, rs); } Loading
graphics/java/android/renderscript/RenderScript.java +8 −8 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ public class RenderScript { native void nContextBindRootScript(int script); native void nContextBindSampler(int sampler, int slot); native void nContextBindProgramFragmentStore(int pfs); native void nContextBindProgramStore(int pfs); native void nContextBindProgramFragment(int pf); native void nContextBindProgramVertex(int pf); native void nContextBindProgramRaster(int pr); Loading Loading @@ -154,13 +154,13 @@ public class RenderScript { native void nSamplerSet(int param, int value); native int nSamplerCreate(); native void nProgramFragmentStoreBegin(int in, int out); native void nProgramFragmentStoreDepthFunc(int func); native void nProgramFragmentStoreDepthMask(boolean enable); native void nProgramFragmentStoreColorMask(boolean r, boolean g, boolean b, boolean a); native void nProgramFragmentStoreBlendFunc(int src, int dst); native void nProgramFragmentStoreDither(boolean enable); native int nProgramFragmentStoreCreate(); native void nProgramStoreBegin(int in, int out); native void nProgramStoreDepthFunc(int func); native void nProgramStoreDepthMask(boolean enable); native void nProgramStoreColorMask(boolean r, boolean g, boolean b, boolean a); native void nProgramStoreBlendFunc(int src, int dst); native void nProgramStoreDither(boolean enable); native int nProgramStoreCreate(); native int nProgramRasterCreate(int in, int out, boolean pointSmooth, boolean lineSmooth, boolean pointSprite); native void nProgramRasterSetLineWidth(int pr, float v); Loading
graphics/java/android/renderscript/RenderScriptGL.java +2 −2 Original line number Diff line number Diff line Loading @@ -74,9 +74,9 @@ public class RenderScriptGL extends RenderScript { nContextBindRootScript(safeID(s)); } public void contextBindProgramFragmentStore(ProgramStore p) { public void contextBindProgramStore(ProgramStore p) { validate(); nContextBindProgramFragmentStore(safeID(p)); nContextBindProgramStore(safeID(p)); } public void contextBindProgramFragment(ProgramFragment p) { Loading
graphics/jni/android_renderscript_RenderScript.cpp +32 −32 Original line number Diff line number Diff line Loading @@ -1042,60 +1042,60 @@ nScriptCAddDefineF(JNIEnv *_env, jobject _this, jstring name, jfloat value) // --------------------------------------------------------------------------- static void nProgramFragmentStoreBegin(JNIEnv *_env, jobject _this, jint in, jint out) nProgramStoreBegin(JNIEnv *_env, jobject _this, jint in, jint out) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreBegin, con(%p), in(%p), out(%p)", con, (RsElement)in, (RsElement)out); rsProgramFragmentStoreBegin(con, (RsElement)in, (RsElement)out); LOG_API("nProgramStoreBegin, con(%p), in(%p), out(%p)", con, (RsElement)in, (RsElement)out); rsProgramStoreBegin(con, (RsElement)in, (RsElement)out); } static void nProgramFragmentStoreDepthFunc(JNIEnv *_env, jobject _this, jint func) nProgramStoreDepthFunc(JNIEnv *_env, jobject _this, jint func) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreDepthFunc, con(%p), func(%i)", con, func); rsProgramFragmentStoreDepthFunc(con, (RsDepthFunc)func); LOG_API("nProgramStoreDepthFunc, con(%p), func(%i)", con, func); rsProgramStoreDepthFunc(con, (RsDepthFunc)func); } static void nProgramFragmentStoreDepthMask(JNIEnv *_env, jobject _this, jboolean enable) nProgramStoreDepthMask(JNIEnv *_env, jobject _this, jboolean enable) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreDepthMask, con(%p), enable(%i)", con, enable); rsProgramFragmentStoreDepthMask(con, enable); LOG_API("nProgramStoreDepthMask, con(%p), enable(%i)", con, enable); rsProgramStoreDepthMask(con, enable); } static void nProgramFragmentStoreColorMask(JNIEnv *_env, jobject _this, jboolean r, jboolean g, jboolean b, jboolean a) nProgramStoreColorMask(JNIEnv *_env, jobject _this, jboolean r, jboolean g, jboolean b, jboolean a) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreColorMask, con(%p), r(%i), g(%i), b(%i), a(%i)", con, r, g, b, a); rsProgramFragmentStoreColorMask(con, r, g, b, a); LOG_API("nProgramStoreColorMask, con(%p), r(%i), g(%i), b(%i), a(%i)", con, r, g, b, a); rsProgramStoreColorMask(con, r, g, b, a); } static void nProgramFragmentStoreBlendFunc(JNIEnv *_env, jobject _this, int src, int dst) nProgramStoreBlendFunc(JNIEnv *_env, jobject _this, int src, int dst) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreBlendFunc, con(%p), src(%i), dst(%i)", con, src, dst); rsProgramFragmentStoreBlendFunc(con, (RsBlendSrcFunc)src, (RsBlendDstFunc)dst); LOG_API("nProgramStoreBlendFunc, con(%p), src(%i), dst(%i)", con, src, dst); rsProgramStoreBlendFunc(con, (RsBlendSrcFunc)src, (RsBlendDstFunc)dst); } static void nProgramFragmentStoreDither(JNIEnv *_env, jobject _this, jboolean enable) nProgramStoreDither(JNIEnv *_env, jobject _this, jboolean enable) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreDither, con(%p), enable(%i)", con, enable); rsProgramFragmentStoreDither(con, enable); LOG_API("nProgramStoreDither, con(%p), enable(%i)", con, enable); rsProgramStoreDither(con, enable); } static jint nProgramFragmentStoreCreate(JNIEnv *_env, jobject _this) nProgramStoreCreate(JNIEnv *_env, jobject _this) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nProgramFragmentStoreCreate, con(%p)", con); LOG_API("nProgramStoreCreate, con(%p)", con); return (jint)rsProgramFragmentStoreCreate(con); return (jint)rsProgramStoreCreate(con); } // --------------------------------------------------------------------------- Loading Loading @@ -1225,11 +1225,11 @@ nContextBindRootScript(JNIEnv *_env, jobject _this, jint script) } static void nContextBindProgramFragmentStore(JNIEnv *_env, jobject _this, jint pfs) nContextBindProgramStore(JNIEnv *_env, jobject _this, jint pfs) { RsContext con = (RsContext)(_env->GetIntField(_this, gContextId)); LOG_API("nContextBindProgramFragmentStore, con(%p), pfs(%p)", con, (RsProgramFragmentStore)pfs); rsContextBindProgramFragmentStore(con, (RsProgramFragmentStore)pfs); LOG_API("nContextBindProgramStore, con(%p), pfs(%p)", con, (RsProgramStore)pfs); rsContextBindProgramStore(con, (RsProgramStore)pfs); } static void Loading Loading @@ -1453,13 +1453,13 @@ static JNINativeMethod methods[] = { {"nScriptCSetScript", "([BII)V", (void*)nScriptCSetScript }, {"nScriptCCreate", "()I", (void*)nScriptCCreate }, {"nProgramFragmentStoreBegin", "(II)V", (void*)nProgramFragmentStoreBegin }, {"nProgramFragmentStoreDepthFunc", "(I)V", (void*)nProgramFragmentStoreDepthFunc }, {"nProgramFragmentStoreDepthMask", "(Z)V", (void*)nProgramFragmentStoreDepthMask }, {"nProgramFragmentStoreColorMask", "(ZZZZ)V", (void*)nProgramFragmentStoreColorMask }, {"nProgramFragmentStoreBlendFunc", "(II)V", (void*)nProgramFragmentStoreBlendFunc }, {"nProgramFragmentStoreDither", "(Z)V", (void*)nProgramFragmentStoreDither }, {"nProgramFragmentStoreCreate", "()I", (void*)nProgramFragmentStoreCreate }, {"nProgramStoreBegin", "(II)V", (void*)nProgramStoreBegin }, {"nProgramStoreDepthFunc", "(I)V", (void*)nProgramStoreDepthFunc }, {"nProgramStoreDepthMask", "(Z)V", (void*)nProgramStoreDepthMask }, {"nProgramStoreColorMask", "(ZZZZ)V", (void*)nProgramStoreColorMask }, {"nProgramStoreBlendFunc", "(II)V", (void*)nProgramStoreBlendFunc }, {"nProgramStoreDither", "(Z)V", (void*)nProgramStoreDither }, {"nProgramStoreCreate", "()I", (void*)nProgramStoreCreate }, {"nProgramBindConstants", "(III)V", (void*)nProgramBindConstants }, {"nProgramBindTexture", "(III)V", (void*)nProgramBindTexture }, Loading @@ -1483,7 +1483,7 @@ static JNINativeMethod methods[] = { {"nLightSetPosition", "(IFFF)V", (void*)nLightSetPosition }, {"nContextBindRootScript", "(I)V", (void*)nContextBindRootScript }, {"nContextBindProgramFragmentStore","(I)V", (void*)nContextBindProgramFragmentStore }, {"nContextBindProgramStore", "(I)V", (void*)nContextBindProgramStore }, {"nContextBindProgramFragment", "(I)V", (void*)nContextBindProgramFragment }, {"nContextBindProgramVertex", "(I)V", (void*)nContextBindProgramVertex }, {"nContextBindProgramRaster", "(I)V", (void*)nContextBindProgramRaster }, Loading
libs/rs/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -91,7 +91,7 @@ LOCAL_SRC_FILES:= \ rsNoise.cpp \ rsProgram.cpp \ rsProgramFragment.cpp \ rsProgramFragmentStore.cpp \ rsProgramStore.cpp \ rsProgramRaster.cpp \ rsProgramVertex.cpp \ rsSampler.cpp \ Loading