diff options
author | 2011-05-19 12:27:22 -0700 | |
---|---|---|
committer | 2011-05-19 12:27:22 -0700 | |
commit | 3a9e712aca65ac49e7155e98e5d6b815da76f94b (patch) | |
tree | 4d8ad0df7eb77a3e564c08999d001dd02889c520 /libs/rs/rsContext.cpp | |
parent | 3c707256cf238354524a9cac2b539259328bb035 (diff) | |
parent | d9d37cc1b6700923be5ae8c04fbb1b0effc7ab63 (diff) |
Merge "Move context and device creation out of the spec file."
Diffstat (limited to 'libs/rs/rsContext.cpp')
-rw-r--r-- | libs/rs/rsContext.cpp | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index d3bd0d984b38..bab5c58da2bf 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -637,22 +637,6 @@ void rsi_ContextDestroy(Context *rsc) { 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 @@ void rsi_ContextDeinitToClient(Context *rsc) { } } +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) { |