Merge "Check if SC is valid before calling setTransparentRegionHint" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d589f615a9
@@ -3064,8 +3064,10 @@ public final class ViewRootImpl implements ViewParent,
|
||||
// via the WM relayout code path. We probably eventually
|
||||
// want to synchronize transparent region hint changes
|
||||
// with draws.
|
||||
mTransaction.setTransparentRegionHint(getSurfaceControl(),
|
||||
mTransparentRegion).apply();
|
||||
SurfaceControl sc = getSurfaceControl();
|
||||
if (sc.isValid()) {
|
||||
mTransaction.setTransparentRegionHint(sc, mTransparentRegion).apply();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user