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/rsThreadIO.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/rs/rsThreadIO.cpp') diff --git a/libs/rs/rsThreadIO.cpp b/libs/rs/rsThreadIO.cpp index d5ac70b18409..23c808a6d4d0 100644 --- a/libs/rs/rsThreadIO.cpp +++ b/libs/rs/rsThreadIO.cpp @@ -34,12 +34,14 @@ ThreadIO::~ThreadIO() { } -void ThreadIO::playCoreCommands(Context *con) +bool ThreadIO::playCoreCommands(Context *con) { //LOGE("playCoreCommands 1"); uint32_t cmdID = 0; uint32_t cmdSize = 0; + bool ret = false; while(!mToCore.isEmpty()) { + ret = true; //LOGE("playCoreCommands 2"); const void * data = mToCore.get(&cmdID, &cmdSize); //LOGE("playCoreCommands 3 %i %i", cmdID, cmdSize); @@ -50,6 +52,7 @@ void ThreadIO::playCoreCommands(Context *con) mToCore.next(); //LOGE("playCoreCommands 5"); } + return ret; } -- cgit v1.2.3-59-g8ed1b