diff options
author | Jason Sams <rjsams@android.com> | 2010-06-21 17:42:41 -0700 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-06-21 17:42:41 -0700 |
commit | f110d4b787b91dabe968a812e76e5c1f8d953487 (patch) | |
tree | 65d71a0acb1441510240bec336535898a27d59e7 /libs/rs/rsElement.cpp | |
parent | 3ac8da87bba83de254e612ff8387db23e6434119 (diff) | |
download | frameworks_base-f110d4b787b91dabe968a812e76e5c1f8d953487.zip frameworks_base-f110d4b787b91dabe968a812e76e5c1f8d953487.tar.gz frameworks_base-f110d4b787b91dabe968a812e76e5c1f8d953487.tar.bz2 |
Move ImageProcessing and ModelViewer to reflected files.
Implement boolean support.
Change-Id: Iac2dc28067ac430b3e413fc651dfaa0b96214e2e
Diffstat (limited to 'libs/rs/rsElement.cpp')
-rw-r--r-- | libs/rs/rsElement.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/libs/rs/rsElement.cpp b/libs/rs/rsElement.cpp index 8fbf004..aa20275 100644 --- a/libs/rs/rsElement.cpp +++ b/libs/rs/rsElement.cpp @@ -232,45 +232,6 @@ const Element * Element::create(Context *rsc, size_t count, const Element **ein, return e; } -String8 Element::getCStructBody(uint32_t indent) const -{ - String8 si; - for (uint32_t ct=0; ct < indent; ct++) { - si.append(" "); - } - - String8 s(si); - s.append("{\n"); - for (uint32_t ct = 0; ct < mFieldCount; ct++) { - s.append(si); - s.append(mFields[ct].e->getCType(indent+4)); - s.append(" "); - s.append(mFields[ct].name); - s.append(";\n"); - } - s.append(si); - s.append("}"); - return s; -} - -String8 Element::getCType(uint32_t indent) const -{ - String8 s; - for (uint32_t ct=0; ct < indent; ct++) { - s.append(" "); - } - - if (!mFieldCount) { - // Basic component. - s.append(mComponent.getCType()); - } else { - s.append("struct "); - s.append(getCStructBody(indent)); - } - - return s; -} - String8 Element::getGLSLType(uint32_t indent) const { String8 s; |