summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/LayerDim.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2014-02-20 00:56:34 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-02-20 00:56:34 +0000
commitda03fe4bfcc5f6626d38798e4d9def8596fd869c (patch)
tree560ea71efc14b19d598d2984bea738646a9a7a3e /services/surfaceflinger/LayerDim.cpp
parent79aa621330e1fefcfc7ccf7c14ef51a8d0ea8c9c (diff)
parentc701401f8cec2e5309f8b57e2b97baced5093274 (diff)
Merge "Allow disabling layer rotation during screenshots"
Diffstat (limited to 'services/surfaceflinger/LayerDim.cpp')
-rw-r--r--services/surfaceflinger/LayerDim.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/surfaceflinger/LayerDim.cpp b/services/surfaceflinger/LayerDim.cpp
index 4e82babdb4..14aa328fef 100644
--- a/services/surfaceflinger/LayerDim.cpp
+++ b/services/surfaceflinger/LayerDim.cpp
@@ -39,12 +39,13 @@ LayerDim::LayerDim(SurfaceFlinger* flinger, const sp<Client>& client,
LayerDim::~LayerDim() {
}
-void LayerDim::onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const
+void LayerDim::onDraw(const sp<const DisplayDevice>& hw,
+ const Region& /* clip */, bool useIdentityTransform) const
{
const State& s(getDrawingState());
if (s.alpha>0) {
Mesh mesh(Mesh::TRIANGLE_FAN, 4, 2);
- computeGeometry(hw, mesh);
+ computeGeometry(hw, mesh, useIdentityTransform);
RenderEngine& engine(mFlinger->getRenderEngine());
engine.setupDimLayerBlending(s.alpha);
engine.drawMesh(mesh);