summaryrefslogtreecommitdiff
path: root/libs/rs/rsComponent.cpp
diff options
context:
space:
mode:
author Alex Sakhartchouk <alexst@google.com> 2011-08-17 13:29:24 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-08-17 13:29:24 -0700
commit4270295ae8ffea9888c3bf881c07ba53d5e6f9c2 (patch)
tree24a63b455a529b2ea29052a9a46976697dbc798d /libs/rs/rsComponent.cpp
parent5a9ffaa4cb58be595ba57d4078988d0496781063 (diff)
parent117abdbc67123654d0754b686c5bbdee6b44bcdd (diff)
Merge "Fixing asynchronous performance issues."
Diffstat (limited to 'libs/rs/rsComponent.cpp')
-rw-r--r--libs/rs/rsComponent.cpp30
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",