summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsContext.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-09-13 15:41:01 -0700
committerJason Sams <rjsams@android.com>2011-09-13 15:41:01 -0700
commit5316b9eead0c29df36f46d29c17914bc3c61ed9f (patch)
treebab39b823aaffa5d97014690fbc84505543b5a7a /libs/rs/rsContext.h
parent53fc3e18675d47face40b4726414fdc4aacb7d2f (diff)
downloadframeworks_base-5316b9eead0c29df36f46d29c17914bc3c61ed9f.zip
frameworks_base-5316b9eead0c29df36f46d29c17914bc3c61ed9f.tar.gz
frameworks_base-5316b9eead0c29df36f46d29c17914bc3c61ed9f.tar.bz2
Add RS watchdog.
Change-Id: I4c912beb84fa8a37ada0088049f7776132e994b6
Diffstat (limited to 'libs/rs/rsContext.h')
-rw-r--r--libs/rs/rsContext.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/rs/rsContext.h b/libs/rs/rsContext.h
index 3c7a3d2..199cc5a 100644
--- a/libs/rs/rsContext.h
+++ b/libs/rs/rsContext.h
@@ -191,6 +191,19 @@ public:
bool mLogVisual;
} props;
+ mutable struct {
+ bool inRoot;
+ const char *command;
+ const char *file;
+ uint32_t line;
+ } watchdog;
+ static void printWatchdogInfo(void *ctx);
+ void setWatchdogGL(const char *cmd, uint32_t line, const char *file) const {
+ watchdog.command = cmd;
+ watchdog.file = file;
+ watchdog.line = line;
+ }
+
void dumpDebug() const;
void setError(RsError e, const char *msg = NULL) const;