diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 8d8af522f..e2a0167ee 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -557,9 +557,7 @@ void Layer::setPerFrameData(const sp& 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()) {