Move context and device creation out of the spec file. Change-Id: I79470d4fb9317bcad9d68921ce0c414aa133f3cb
diff --git a/rsContext.cpp b/rsContext.cpp index d3bd0d9..bab5c58 100644 --- a/rsContext.cpp +++ b/rsContext.cpp
@@ -637,22 +637,6 @@ LOGV("rsContextDestroy 2 %p", rsc); } -RsContext rsi_ContextCreate(RsDevice vdev, uint32_t version) { - LOGV("rsContextCreate %p", vdev); - Device * dev = static_cast<Device *>(vdev); - Context *rsc = Context::createContext(dev, NULL); - return rsc; -} - -RsContext rsi_ContextCreateGL(RsDevice vdev, uint32_t version, - RsSurfaceConfig sc, uint32_t dpi) { - LOGV("rsContextCreateGL %p", vdev); - Device * dev = static_cast<Device *>(vdev); - Context *rsc = Context::createContext(dev, &sc); - rsc->setDPI(dpi); - LOGV("rsContextCreateGL ret %p ", rsc); - return rsc; -} RsMessageToClientType rsi_ContextPeekMessage(Context *rsc, size_t * receiveLen, size_t receiveLen_length, @@ -679,6 +663,23 @@ } } +RsContext rsContextCreate(RsDevice vdev, uint32_t version) { + LOGV("rsContextCreate %p", vdev); + Device * dev = static_cast<Device *>(vdev); + Context *rsc = Context::createContext(dev, NULL); + return rsc; +} + +RsContext rsContextCreateGL(RsDevice vdev, uint32_t version, + RsSurfaceConfig sc, uint32_t dpi) { + LOGV("rsContextCreateGL %p", vdev); + Device * dev = static_cast<Device *>(vdev); + Context *rsc = Context::createContext(dev, &sc); + rsc->setDPI(dpi); + LOGV("rsContextCreateGL ret %p ", rsc); + return rsc; +} + // Only to be called at a3d load time, before object is visible to user // not thread safe void rsaGetName(RsContext con, void * obj, const char **name) {