summaryrefslogtreecommitdiff
path: root/libs/rs/rsContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/rs/rsContext.h')
-rw-r--r--libs/rs/rsContext.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/rs/rsContext.h b/libs/rs/rsContext.h
index e269d4ec79a9..2017ceb73039 100644
--- a/libs/rs/rsContext.h
+++ b/libs/rs/rsContext.h
@@ -69,7 +69,7 @@ namespace renderscript {
class Context
{
public:
- Context(Device *, const RsSurfaceConfig *sc);
+ static Context * createContext(Device *, const RsSurfaceConfig *sc);
~Context();
static pthread_key_t gThreadTLSKey;
@@ -276,9 +276,10 @@ protected:
private:
Context();
+ bool initContext(Device *, const RsSurfaceConfig *sc);
- void initEGL();
- void initGLThread();
+
+ bool initGLThread();
void deinitEGL();
uint32_t runRootScript();