diff options
Diffstat (limited to 'rsContext.h')
-rw-r--r-- | rsContext.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rsContext.h b/rsContext.h index 5965caeb..6cb0ed76 100644 --- a/rsContext.h +++ b/rsContext.h @@ -283,6 +283,11 @@ public: return mCacheDir; } + // Returns the actual loaded driver's name (like "libRSDriver.so"). + const char * getDriverName() { + return mDriverName; + } + protected: @@ -336,6 +341,11 @@ private: bool mHasSurface; bool mIsContextLite; + // This holds the name of the driver (like "libRSDriver.so"). + // Since this is always just a static string, we don't have to + // allocate, copy, or free any memory here. + const char* mDriverName; + Vector<ObjectBase *> mNames; uint64_t mTimers[_RS_TIMER_TOTAL]; |