summaryrefslogtreecommitdiff
path: root/libs/hwui/Vertex.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-01-02 16:46:18 -0800
committerChris Craik <ccraik@google.com>2014-01-02 16:52:32 -0800
commit564acf7c9bff822f608cda0d5df0a64a9f9aaefd (patch)
tree93a3203fc99098dedd4df5660c96d6800c97ae93 /libs/hwui/Vertex.h
parente459367a3a49cbe94dfe38c50369431614dddc9c (diff)
Fix Clang warnings/errors
Fix several build warnings (struct != class, int != size_t) and errors (variable leng non-POD arrays). Change-Id: I70b4e784365514303d8954bfcb1f39d7c22c1321
Diffstat (limited to 'libs/hwui/Vertex.h')
-rw-r--r--libs/hwui/Vertex.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/Vertex.h b/libs/hwui/Vertex.h
index 351ce71bbc00..5d7a19921e35 100644
--- a/libs/hwui/Vertex.h
+++ b/libs/hwui/Vertex.h
@@ -33,7 +33,8 @@ struct Vertex {
* Program::set()), and used to make geometry damage rect calculation conservative (see
* Rect::snapGeometryToPixelBoundaries())
*/
- static const float gGeometryFudgeFactor = 0.0656f;
+ static float GeometryFudgeFactor() { return 0.0656f; }
+
float x, y;