summaryrefslogtreecommitdiff
path: root/rsContext.h
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2012-11-29 14:37:59 -0800
committerTim Murray <timmurray@google.com>2012-12-04 18:32:49 -0800
commit4d252d6e807b89764dad123ac845df298c52ca97 (patch)
tree7b07cab9e7278b108b9ab15663221bd18da00f8e /rsContext.h
parent2e1a94df812f0caa42ff24eaefeba8f90fbdf1ac (diff)
downloadrs-4d252d6e807b89764dad123ac845df298c52ca97.tar.gz
enable synchronous mode (functional)
Change-Id: I613610013e7e4d1623620ab94d2d25d8a1bd82b3 Bug: 5972398
Diffstat (limited to 'rsContext.h')
-rw-r--r--rsContext.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/rsContext.h b/rsContext.h
index 61218dab..bc0c63ef 100644
--- a/rsContext.h
+++ b/rsContext.h
@@ -67,8 +67,7 @@ public:
};
Hal mHal;
- static Context * createContext(Device *, const RsSurfaceConfig *sc);
- static Context * createContext(Device *, const RsSurfaceConfig *sc, bool forceCpu);
+ static Context * createContext(Device *, const RsSurfaceConfig *sc, bool forceCpu = false, bool synchronous = false);
static Context * createContextLite();
~Context();
@@ -104,6 +103,8 @@ public:
ScriptCState mScriptC;
FBOCache mFBOCache;
+ bool isSynchronous() {return mSynchronous;}
+
void swapBuffers();
void setRootScript(Script *);
void setProgramRaster(ProgramRaster *);
@@ -247,6 +248,7 @@ private:
Context();
bool initContext(Device *, const RsSurfaceConfig *sc);
+ bool mSynchronous;
bool initGLThread();
void deinitEGL();