am 5ab3ba1e: Merge "SF: Don\'t crop surface damage against viewport"

* commit '5ab3ba1e43e609c7a77cc780c888f666d153a4c9':
  SF: Don't crop surface damage against viewport
This commit is contained in:
Dan Stoza 2015-06-09 20:40:48 +00:00 committed by Android Git Automerger
commit 558f55c798

View File

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