summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/LayerDim.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2012-06-29 14:12:52 -0700
committer Mathias Agopian <mathias@google.com> 2012-07-10 14:29:27 -0700
commit4fec873a98f7b4380720cd1ad006f74c8cdc73da (patch)
tree5d21495a3f4e9f87bf20c6a3d3ea0db83cbe33c0 /services/surfaceflinger/LayerDim.cpp
parente7db724bed5d1e5086801df7705d9b1f2a071785 (diff)
one more step towards multiple display support
- remove dependency on cached state in validateVisibility - get rid of mVertices and mTransformedBounds - get rid of validateVisibility - get rid of unlockPageFlip - handleTransaction now returns a dirty region - computevisibileregion now uses window-manager space
Diffstat (limited to 'services/surfaceflinger/LayerDim.cpp')
-rw-r--r--services/surfaceflinger/LayerDim.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/services/surfaceflinger/LayerDim.cpp b/services/surfaceflinger/LayerDim.cpp
index ceead455c9..5c37d01e53 100644
--- a/services/surfaceflinger/LayerDim.cpp
+++ b/services/surfaceflinger/LayerDim.cpp
@@ -58,8 +58,11 @@ void LayerDim::onDraw(const DisplayHardware& hw, const Region& clip) const
glColor4f(0, 0, 0, alpha);
- glVertexPointer(2, GL_FLOAT, 0, mVertices);
- glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
+ LayerMesh mesh;
+ computeGeometry(hw, &mesh);
+
+ glVertexPointer(2, GL_FLOAT, 0, mesh.getVertices());
+ glDrawArrays(GL_TRIANGLE_FAN, 0, mesh.getVertexCount());
glDisable(GL_BLEND);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);