summaryrefslogtreecommitdiff
path: root/cpp/Element.cpp
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2015-09-14 15:05:41 -0700
committerMiao Wang <miaowang@google.com>2015-09-15 10:17:13 -0700
commit70d8995254ee38173129e4ae4c9372f43716eb4e (patch)
tree6879d044f5ec5066e107cd9e90f17cf8c12de6f3 /cpp/Element.cpp
parentffa1b8b069ac89d56652974c6a67e366327955cd (diff)
downloadrs-70d8995254ee38173129e4ae4c9372f43716eb4e.tar.gz
Fix updateFromNative in C++ API.
Change-Id: I2b1cce8ab964e9ddd6b039fd8d7b8f8bf5f0eed1
Diffstat (limited to 'cpp/Element.cpp')
-rw-r--r--cpp/Element.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/Element.cpp b/cpp/Element.cpp
index cfbc3854..402306ef 100644
--- a/cpp/Element.cpp
+++ b/cpp/Element.cpp
@@ -212,6 +212,9 @@ Element::Element(void *id, android::RSC::sp<RS> rs,
updateVisibleSubElements();
}
+Element::Element(void *id, android::RSC::sp<RS> rs) :
+ BaseObj(id, rs) {
+}
static uint32_t GetSizeInBytesForType(RsDataType dt) {
switch(dt) {