Merge "SF: Don't crop surface damage against viewport"

This commit is contained in:
Dan Stoza 2015-06-09 20:28:59 +00:00 committed by Gerrit Code Review
commit 5ab3ba1e43

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()) {