diff options
| author | Jason Sams <rjsams@android.com> | 2010-10-13 15:31:10 -0700 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2010-10-13 15:31:10 -0700 |
| commit | 11c8af9ded3a319635b4e91a639a616ec97fc7e3 (patch) | |
| tree | b229be5c62ec938c4cf2f11ca6aa15d2b85e5ba2 /libs/rs/rsContext.h | |
| parent | 3c0365518f3f664634ed0f9464c351acf3b7e86d (diff) | |
| download | frameworks_base-11c8af9ded3a319635b4e91a639a616ec97fc7e3.zip frameworks_base-11c8af9ded3a319635b4e91a639a616ec97fc7e3.tar.gz frameworks_base-11c8af9ded3a319635b4e91a639a616ec97fc7e3.tar.bz2 | |
Begin hooking up SurfaceConfig.
Change-Id: I328138f29affbed11fcfb5e9ed0872d4ba22d241
Diffstat (limited to 'libs/rs/rsContext.h')
| -rw-r--r-- | libs/rs/rsContext.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/rs/rsContext.h b/libs/rs/rsContext.h index 8a8b8a8..dbe2c79 100644 --- a/libs/rs/rsContext.h +++ b/libs/rs/rsContext.h @@ -69,7 +69,7 @@ namespace renderscript { class Context { public: - Context(Device *, bool isGraphics, bool useDepth); + Context(Device *, const RsSurfaceConfig *sc); ~Context(); static pthread_key_t gThreadTLSKey; @@ -82,6 +82,7 @@ public: Script * mScript; }; ScriptTLSStruct *mTlsStruct; + RsSurfaceConfig mUserSurfaceConfig; typedef void (*WorkerCallback_t)(void *usr, uint32_t idx); @@ -207,6 +208,7 @@ protected: EGLConfig mConfig; EGLContext mContext; EGLSurface mSurface; + EGLSurface mSurfaceDefault; EGLDisplay mDisplay; } mEGL; @@ -240,7 +242,6 @@ protected: bool mRunning; bool mExit; - bool mUseDepth; bool mPaused; RsError mError; const char *mErrorMsg; @@ -274,7 +275,8 @@ protected: private: Context(); - void initEGL(bool useGL2); + void initEGL(); + void initGLThread(); void deinitEGL(); uint32_t runRootScript(); |
