From 074a13a3cb7507d8fe783441e879cff2671a23f1 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Thu, 4 Jun 2015 19:40:03 -0700 Subject: [PATCH] SF: Don't crop surface damage against viewport Apply the display transform to surface damage, but don't intersect it with the viewport. Bug: 21486007 Change-Id: I94e697cea52096a960385d5f3b89609fdcf30a02 (cherry picked from commit 17833a1b0d70cd5cea342cadea9fdbbf16748bc6) --- services/surfaceflinger/Layer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()) {