summaryrefslogtreecommitdiffstats
path: root/libs/rs/driver/rsdGL.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/driver/rsdGL.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/driver/rsdGL.h')
-rw-r--r--libs/rs/driver/rsdGL.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/rs/driver/rsdGL.h b/libs/rs/driver/rsdGL.h
index 0d5b7e7..fc33885 100644
--- a/libs/rs/driver/rsdGL.h
+++ b/libs/rs/driver/rsdGL.h
@@ -20,6 +20,8 @@
#include <rs_hal.h>
#include <EGL/egl.h>
+#define RSD_CALL_GL(x, ...) rsc->setWatchdogGL(#x, __LINE__, __FILE__); x(__VA_ARGS__); rsc->setWatchdogGL(NULL, 0, NULL)
+
class RsdShaderCache;
class RsdVertexArrayState;
class RsdFrameBufferObj;
@@ -73,7 +75,6 @@ typedef struct RsdGLRec {
} RsdGL;
-
bool rsdGLInit(const android::renderscript::Context *rsc);
void rsdGLShutdown(const android::renderscript::Context *rsc);
bool rsdGLSetSurface(const android::renderscript::Context *rsc,