Add named objects and implement support for ProgramFragmentStore and ProgramFragment to be used by name in scripts.
diff --git a/libs/rs/rsContext.h b/libs/rs/rsContext.h
index 929c0f9..184740f 100644
--- a/libs/rs/rsContext.h
+++ b/libs/rs/rsContext.h
@@ -42,7 +42,6 @@
namespace android {
namespace renderscript {
-
class Context
{
public:
@@ -77,6 +76,10 @@
void setupCheck();
+ void assignName(ObjectBase *obj, const char *name);
+ void removeName(ObjectBase *obj);
+ ObjectBase * lookupName(const char *name) const;
+
protected:
Device *mDev;
@@ -112,7 +115,7 @@
void initEGL();
- bool runScript(Script *s);
+ bool runScript(Script *s, uint32_t launchID);
bool runRootScript();
static void * threadProc(void *);
@@ -120,6 +123,8 @@
// todo: put in TLS
static Context *gCon;
Surface *mWndSurface;
+
+ Vector<ObjectBase *> mNames;
};