commit | e60446b9c1a0f4f48372a36de5b01a2ddb8121e3 | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Thu Sep 24 14:55:38 2009 -0700 |
committer | Jason Sams <rjsams@android.com> | Thu Sep 24 14:55:38 2009 -0700 |
tree | 8d9d7807a3aa295e2445095ab646a611711f7b72 | |
parent | b6f2b131c42e5148b07c7cfe22b8bd5bc5b4ad4b [diff] [blame] |
Fix invokables to make sure script pointers are setup before invoking function calls. Reduce app startup time up to 1s.
diff --git a/libs/rs/rsScript.cpp b/libs/rs/rsScript.cpp index 99a085d..76fed3b 100644 --- a/libs/rs/rsScript.cpp +++ b/libs/rs/rsScript.cpp
@@ -94,6 +94,7 @@ void rsi_ScriptInvoke(Context *rsc, RsScript vs, uint32_t slot) { Script *s = static_cast<Script *>(vs); + s->setupScript(); s->mEnviroment.mInvokables[slot](); }