summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsElement.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-10-26 16:16:17 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-10-26 16:16:17 -0700
commit64eb351cff16db2aeaf2c279fbcce9c6a80d0047 (patch)
treea6f84a9e3da23cc1786664396b28161f4378557b /libs/rs/rsElement.cpp
parent6bdf5c39d80efaba9142b87d27a3d09457edd967 (diff)
parent31a7e42f4baa059352f0db119de38428e655eab2 (diff)
downloadframeworks_base-64eb351cff16db2aeaf2c279fbcce9c6a80d0047.zip
frameworks_base-64eb351cff16db2aeaf2c279fbcce9c6a80d0047.tar.gz
frameworks_base-64eb351cff16db2aeaf2c279fbcce9c6a80d0047.tar.bz2
Merge "Begin adding async allocation creation."
Diffstat (limited to 'libs/rs/rsElement.cpp')
-rw-r--r--libs/rs/rsElement.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/rs/rsElement.cpp b/libs/rs/rsElement.cpp
index dc021fc..096115c 100644
--- a/libs/rs/rsElement.cpp
+++ b/libs/rs/rsElement.cpp
@@ -399,6 +399,7 @@ void rsi_ElementGetSubElements(Context *rsc, RsElement elem, uint32_t *ids, cons
rsAssert(e->getFieldCount() == dataSize);
for(uint32_t i = 0; i < dataSize; i ++) {
+ e->getField(i)->incUserRef();
ids[i] = (uint32_t)e->getField(i);
names[i] = e->getFieldName(i);
}