summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsContext.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-12-10 17:15:13 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-12-10 17:15:13 -0800
commitaad442ec278e6528bf1b96bd02c05d2914d033f9 (patch)
tree4c69dc9b6c5f58c6131deb2a4b743d16b07dd4b5 /libs/rs/rsContext.h
parent54db799ada726ccfffc94c5bb4e33e895bfb25b8 (diff)
parentb62954b66542e3e2654d97a81123c51805bceca7 (diff)
downloadframeworks_base-aad442ec278e6528bf1b96bd02c05d2914d033f9.zip
frameworks_base-aad442ec278e6528bf1b96bd02c05d2914d033f9.tar.gz
frameworks_base-aad442ec278e6528bf1b96bd02c05d2914d033f9.tar.bz2
am b62954b6: am 8f31c230: am 57ce0888: Merge change Id22c0137 into eclair
Merge commit 'b62954b66542e3e2654d97a81123c51805bceca7' * commit 'b62954b66542e3e2654d97a81123c51805bceca7': Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.
Diffstat (limited to 'libs/rs/rsContext.h')
-rw-r--r--libs/rs/rsContext.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/rs/rsContext.h b/libs/rs/rsContext.h
index a5e73da..708551c 100644
--- a/libs/rs/rsContext.h
+++ b/libs/rs/rsContext.h
@@ -108,7 +108,7 @@ public:
uint32_t getMessageToClient(void *data, size_t *receiveLen, size_t bufferLen, bool wait);
bool sendMessageToClient(void *data, uint32_t cmdID, size_t len, bool waitForSpace);
- bool runScript(Script *s, uint32_t launchID);
+ uint32_t runScript(Script *s, uint32_t launchID);
void initToClient();
void deinitToClient();
@@ -197,6 +197,7 @@ protected:
uint32_t mWidth;
uint32_t mHeight;
+ int32_t mThreadPriority;
bool mRunning;
bool mExit;
@@ -229,7 +230,7 @@ private:
void initEGL(bool useGL2);
void deinitEGL();
- bool runRootScript();
+ uint32_t runRootScript();
static void * threadProc(void *);
@@ -244,6 +245,9 @@ private:
uint64_t mTimeLast;
uint64_t mTimeFrame;
uint64_t mTimeLastFrame;
+ uint32_t mTimeMSLastFrame;
+ uint32_t mTimeMSLastScript;
+ uint32_t mTimeMSLastSwap;
};
}