summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsContext.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-11-03 14:27:11 -0700
committerJason Sams <rjsams@android.com>2010-11-03 14:27:11 -0700
commitd5f06300341df0990be3e0b7a26fa49b13c6fc19 (patch)
treeb6ab4893e599c401debbe0f0282e28303c5514d9 /libs/rs/rsContext.h
parent4b8d36b30ad2e87f3969034eb42dc14b99f03686 (diff)
downloadframeworks_base-d5f06300341df0990be3e0b7a26fa49b13c6fc19.zip
frameworks_base-d5f06300341df0990be3e0b7a26fa49b13c6fc19.tar.gz
frameworks_base-d5f06300341df0990be3e0b7a26fa49b13c6fc19.tar.bz2
RS Error cleanup.
Thow java exception during init if the GL driver fails rather than native crash. Change-Id: Ie96ef5a2ac12e64f9456545d86157c4c95179a8e
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 e269d4e..2017ceb 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();