Skip to content

Commit

Permalink
Revert "SF: Reduce size of DisplayFrame according to "transparent reg…
Browse files Browse the repository at this point in the history
…ion""

This reverts commit 3fda6ef.

Change-Id: I0b2e7b88c01e06b6e4e4a93094b39e0a0f0f7579
  • Loading branch information
rmcc committed May 14, 2014
1 parent 3fda6ef commit bfa404a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions services/surfaceflinger/Layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,7 @@ void Layer::setGeometry(
// apply the layer's transform, followed by the display's global transform
// here we're guaranteed that the layer's transform preserves rects
Rect frame(s.transform.transform(computeBounds()));
Rect transparentFrame(s.transform.transform(
s.activeTransparentRegion.getBounds()));
transparentFrame.intersect(hw->getViewport(), &transparentFrame);
frame.intersect(hw->getViewport(), &frame);
frame = reduce(frame,Region(transparentFrame));
const Transform& tr(hw->getTransform());
layer.setFrame(tr.transform(frame));
#ifdef QCOM_BSP
Expand Down

0 comments on commit bfa404a

Please sign in to comment.