diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2011-08-16 13:09:46 -0700 |
|---|---|---|
| committer | Alex Sakhartchouk <alexst@google.com> | 2011-08-16 13:09:46 -0700 |
| commit | c700e649ca44d0dcff8b271e42d949ea72fe3c63 (patch) | |
| tree | 0c9bb3cdc112d1a3f4de3e10aaeb138add7311c0 /rsComponent.cpp | |
| parent | 5c4369a3a1b19eaeabb044af2cdeef05474f9069 (diff) | |
Fixing asynchronous performance issues.
Change-Id: I10f02cd37a33a6c655814d24e0a4291dc044fba3
Diffstat (limited to 'rsComponent.cpp')
| -rw-r--r-- | rsComponent.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/rsComponent.cpp b/rsComponent.cpp index e65febb4..ce06306a 100644 --- a/rsComponent.cpp +++ b/rsComponent.cpp @@ -176,36 +176,6 @@ bool Component::isReference() const { return (mType >= RS_TYPE_ELEMENT); } -String8 Component::getGLSLType() const { - if (mType == RS_TYPE_SIGNED_32) { - switch (mVectorSize) { - case 1: return String8("int"); - case 2: return String8("ivec2"); - case 3: return String8("ivec3"); - case 4: return String8("ivec4"); - } - } - if (mType == RS_TYPE_FLOAT_32) { - switch (mVectorSize) { - case 1: return String8("float"); - case 2: return String8("vec2"); - case 3: return String8("vec3"); - case 4: return String8("vec4"); - } - } - if ((mType == RS_TYPE_MATRIX_4X4) && (mVectorSize == 1)) { - return String8("mat4"); - } - if ((mType == RS_TYPE_MATRIX_3X3) && (mVectorSize == 1)) { - return String8("mat3"); - } - if ((mType == RS_TYPE_MATRIX_2X2) && (mVectorSize == 1)) { - return String8("mat2"); - } - return String8(); -} - - static const char * gTypeBasicStrings[] = { "NONE", "F16", |
