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 17833a1b0d
)
This commit is contained in:
parent
816c9e0eab
commit
074a13a3cb
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user