diff options
author | 2011-08-17 13:29:24 -0700 | |
---|---|---|
committer | 2011-08-17 13:29:24 -0700 | |
commit | 4270295ae8ffea9888c3bf881c07ba53d5e6f9c2 (patch) | |
tree | 24a63b455a529b2ea29052a9a46976697dbc798d /libs/rs/rsComponent.cpp | |
parent | 5a9ffaa4cb58be595ba57d4078988d0496781063 (diff) | |
parent | 117abdbc67123654d0754b686c5bbdee6b44bcdd (diff) |
Merge "Fixing asynchronous performance issues."
Diffstat (limited to 'libs/rs/rsComponent.cpp')
-rw-r--r-- | libs/rs/rsComponent.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libs/rs/rsComponent.cpp b/libs/rs/rsComponent.cpp index e65febb4d464..ce06306a1ef0 100644 --- a/libs/rs/rsComponent.cpp +++ b/libs/rs/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", |