Loading packages/SystemUI/compose/core/src/com/android/compose/animation/scene/transformation/PunchHole.kt +3 −2 Original line number Diff line number Diff line Loading @@ -72,15 +72,16 @@ internal class PunchHole( } private fun DrawScope.drawHole(bounds: Element) { val boundsSize = bounds.lastSize.toSize() if (shape == RectangleShape) { drawRect(Color.Black, blendMode = BlendMode.DstOut) drawRect(Color.Black, size = boundsSize, blendMode = BlendMode.DstOut) return } // TODO(b/290184746): Cache outline if the size of bounds does not change. drawOutline( shape.createOutline( bounds.lastSize.toSize(), boundsSize, layoutDirection, this, ), Loading Loading
packages/SystemUI/compose/core/src/com/android/compose/animation/scene/transformation/PunchHole.kt +3 −2 Original line number Diff line number Diff line Loading @@ -72,15 +72,16 @@ internal class PunchHole( } private fun DrawScope.drawHole(bounds: Element) { val boundsSize = bounds.lastSize.toSize() if (shape == RectangleShape) { drawRect(Color.Black, blendMode = BlendMode.DstOut) drawRect(Color.Black, size = boundsSize, blendMode = BlendMode.DstOut) return } // TODO(b/290184746): Cache outline if the size of bounds does not change. drawOutline( shape.createOutline( bounds.lastSize.toSize(), boundsSize, layoutDirection, this, ), Loading