don't reallocate the mesh each time we use it
the Mesh object can be part of each Layer (at least currently).
also reworked the Mesh code a bit to make it easier to access
the vertex data.
Change-Id: I0490851ba898f0aa2e55b62958dcd8bdb535e98b
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index 27e0c69..faf3666 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -357,6 +357,8 @@
bool mFiltering;
// Whether filtering is needed b/c of the drawingstate
bool mNeedsFiltering;
+ // The mesh used to draw the layer in GLES composition mode
+ mutable Mesh mMesh;
// page-flip thread (currently main thread)
bool mSecure; // no screenshots