Use LUT for computing final shadow alpha
bug:27415250
Significantly reduces shadow fragment shader computation.
Change-Id: Ie9b3c712700754b3734d0ae9cda8751c298fc59e
diff --git a/libs/hwui/Glop.h b/libs/hwui/Glop.h
index 6a96634..6433c86 100644
--- a/libs/hwui/Glop.h
+++ b/libs/hwui/Glop.h
@@ -44,9 +44,14 @@
namespace VertexAttribFlags {
enum {
+ // Mesh is pure x,y vertex pairs
None = 0,
+ // Mesh has texture coordinates embedded. Note that texture can exist without this flag
+ // being set, if coordinates passed to sampler are determined another way.
TextureCoord = 1 << 0,
+ // Mesh has color embedded (to export to varying)
Color = 1 << 1,
+ // Mesh has alpha embedded (to export to varying)
Alpha = 1 << 2,
};
};