gralloc: Stride information fix
The perform enum for the stride is defined in gralloc_priv so it
is OK to keep the case outside.
Change-Id: Id31556f76c2a2ae93a15a2e2dc4169b07360e4e6
diff --git a/libgralloc/mapper.cpp b/libgralloc/mapper.cpp
index 268630b..9c97aae 100644
--- a/libgralloc/mapper.cpp
+++ b/libgralloc/mapper.cpp
@@ -313,6 +313,7 @@
res = 0;
}
break;
+#endif
case GRALLOC_MODULE_PERFORM_GET_STRIDE:
{
int width = va_arg(args, int);
@@ -321,7 +322,6 @@
*stride = AdrenoMemInfo::getInstance().getStride(width, format);
res = 0;
} break;
-#endif
default:
break;
}