From c701401f8cec2e5309f8b57e2b97baced5093274 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Fri, 14 Feb 2014 15:03:43 -0800 Subject: Allow disabling layer rotation during screenshots Add the ability to ignore layers' transformation matrices during screenshot capture, which will allow the window manager to capture unrotated images for recents during the device rotation animation. Bug: 11805195 Change-Id: I854d87bc84ca06ef9a054a454af1c080ee66fbb8 --- services/surfaceflinger/LayerDim.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'services/surfaceflinger/LayerDim.cpp') 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, LayerDim::~LayerDim() { } -void LayerDim::onDraw(const sp& hw, const Region& clip) const +void LayerDim::onDraw(const sp& 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); -- cgit v1.2.3-59-g8ed1b