diff options
| author | Jason Sams <rjsams@android.com> | 2010-07-28 11:17:53 -0700 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2010-07-28 11:17:53 -0700 |
| commit | 17966517a1ecbe38b276235967dbc03b58628bbc (patch) | |
| tree | faf17992e3f16a3114a0286812c51eb597e92e69 /libs/rs/rsContext.cpp | |
| parent | 7f4d0c9705af50351753b608fc107e0220c9a2f4 (diff) | |
| download | frameworks_base-17966517a1ecbe38b276235967dbc03b58628bbc.zip frameworks_base-17966517a1ecbe38b276235967dbc03b58628bbc.tar.gz frameworks_base-17966517a1ecbe38b276235967dbc03b58628bbc.tar.bz2 | |
Cleanup sendToClient and add rsGetDt().
Remove legacy implemtation of matrix calls which were moved to llvm bc.
Change-Id: I527740590067db3bcb2147233ef41fb057f1d2a8
Diffstat (limited to 'libs/rs/rsContext.cpp')
| -rw-r--r-- | libs/rs/rsContext.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index d6df581..d1784f3 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -780,9 +780,13 @@ bool Context::sendMessageToClient(void *data, uint32_t cmdID, size_t len, bool w } } //LOGE("sendMessageToClient 2"); - void *p = mIO.mToClient.reserve(len); - memcpy(p, data, len); - mIO.mToClient.commit(cmdID, len); + if (len > 0) { + void *p = mIO.mToClient.reserve(len); + memcpy(p, data, len); + mIO.mToClient.commit(cmdID, len); + } else { + mIO.mToClient.commit(cmdID, 0); + } //LOGE("sendMessageToClient 3"); return true; } |
