Begin hooking up SurfaceConfig.

Change-Id: I328138f29affbed11fcfb5e9ed0872d4ba22d241
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 @@
 class Context
 {
 public:
-    Context(Device *, bool isGraphics, bool useDepth);
+    Context(Device *, const RsSurfaceConfig *sc);
     ~Context();
 
     static pthread_key_t gThreadTLSKey;
@@ -82,6 +82,7 @@
         Script * mScript;
     };
     ScriptTLSStruct *mTlsStruct;
+    RsSurfaceConfig mUserSurfaceConfig;
 
     typedef void (*WorkerCallback_t)(void *usr, uint32_t idx);
 
@@ -207,6 +208,7 @@
         EGLConfig mConfig;
         EGLContext mContext;
         EGLSurface mSurface;
+        EGLSurface mSurfaceDefault;
         EGLDisplay mDisplay;
     } mEGL;
 
@@ -240,7 +242,6 @@
 
     bool mRunning;
     bool mExit;
-    bool mUseDepth;
     bool mPaused;
     RsError mError;
     const char *mErrorMsg;
@@ -274,7 +275,8 @@
 private:
     Context();
 
-    void initEGL(bool useGL2);
+    void initEGL();
+    void initGLThread();
     void deinitEGL();
 
     uint32_t runRootScript();