Add support for DEBUG context type.
Bug: 7343201
This change adds switching for the debug runtime (libclcore_debug.bc) when
running under a DEBUG RS context. It also fixes a small naming issue for
rsSetElementAt_int().
Change-Id: I8b574c9ce915a440375530325ba7de2b46707cfd
diff --git a/rsContext.h b/rsContext.h
index 5b1f50c..abc9b27 100644
--- a/rsContext.h
+++ b/rsContext.h
@@ -71,7 +71,9 @@
};
Hal mHal;
- static Context * createContext(Device *, const RsSurfaceConfig *sc, bool forceCpu = false, bool synchronous = false);
+ static Context * createContext(Device *, const RsSurfaceConfig *sc,
+ RsContextType ct = RS_CONTEXT_TYPE_NORMAL,
+ bool forceCpu = false, bool synchronous = false);
static Context * createContextLite();
~Context();
@@ -229,6 +231,9 @@
uint32_t getTargetSdkVersion() const {return mTargetSdkVersion;}
void setTargetSdkVersion(uint32_t sdkVer) {mTargetSdkVersion = sdkVer;}
+ RsContextType getContextType() const { return mContextType; }
+ void setContextType(RsContextType ct) { mContextType = ct; }
+
Device *mDev;
protected:
@@ -241,6 +246,8 @@
bool mForceCpu;
+ RsContextType mContextType;
+
bool mRunning;
bool mExit;
bool mPaused;