am 37fea879: am 17833a1b: SF: Don\'t crop surface damage against viewport

* commit '37fea879609963703e75f46cb3267fa86d1f2bd2':
  SF: Don't crop surface damage against viewport
This commit is contained in:
Dan Stoza 2015-06-05 16:07:34 +00:00 committed by Android Git Automerger
commit a697ab7088

View File

@ -557,9 +557,7 @@ void Layer::setPerFrameData(const sp<const DisplayDevice>& hw,
surfaceDamageRegion.getBounds() == Rect::INVALID_RECT) { surfaceDamageRegion.getBounds() == Rect::INVALID_RECT) {
layer.setSurfaceDamage(surfaceDamageRegion); layer.setSurfaceDamage(surfaceDamageRegion);
} else { } else {
Region surfaceDamage = layer.setSurfaceDamage(tr.transform(surfaceDamageRegion));
tr.transform(surfaceDamageRegion.intersect(hw->getViewport()));
layer.setSurfaceDamage(surfaceDamage);
} }
if (mSidebandStream.get()) { if (mSidebandStream.get()) {