优化
This commit is contained in:
1 parent
4eeebdffc5
commit
45e9a84c5f
1 file changed
+1
-1
@@ -23,8 +23,8 @@ fun CanvasRecorder.recordIfNeeded(view: View): Boolean {
|
||||
}
|
||||
|
||||
inline fun CanvasRecorder.record(width: Int, height: Int, block: Canvas.() -> Unit) {
|
||||
val canvas = beginRecording(width, height)
|
||||
try {
|
||||
val canvas = beginRecording(width, height)
|
||||
canvas.withSave {
|
||||
block()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user