From a09f11d6c641726b61f80c15230a18d31c146fec Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 4 Jun 2009 17:58:03 -0700 Subject: Add support for scripts to return an animation flag. This allows them to indicate they are generating changing content and the rs thread to sleep if the content is static. --- libs/rs/rsScriptC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/rs/rsScriptC.cpp') diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 2c7d88415f5c..36019abac21e 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -387,10 +387,10 @@ static rsc_FunctionTable scriptCPtrTable = { }; -void ScriptC::run(Context *rsc, uint32_t launchID) +bool ScriptC::run(Context *rsc, uint32_t launchID) { Env e = {rsc, this}; - mScript(&e, &scriptCPtrTable, launchID); + return mScript(&e, &scriptCPtrTable, launchID) != 0; } ScriptCState::ScriptCState() -- cgit v1.2.3-59-g8ed1b