优化
This commit is contained in:
@@ -7,13 +7,15 @@ import androidx.core.graphics.record
|
|||||||
import java.util.concurrent.locks.ReentrantLock
|
import java.util.concurrent.locks.ReentrantLock
|
||||||
|
|
||||||
class PictureMirror {
|
class PictureMirror {
|
||||||
|
@Volatile
|
||||||
var picture: Picture? = null
|
var picture: Picture? = null
|
||||||
|
|
||||||
@Volatile
|
@Volatile
|
||||||
var isDirty = true
|
|
||||||
var lock: ReentrantLock? = null
|
var lock: ReentrantLock? = null
|
||||||
|
|
||||||
|
@Volatile
|
||||||
|
var isDirty = true
|
||||||
|
|
||||||
inline fun drawLocked(
|
inline fun drawLocked(
|
||||||
canvas: Canvas?,
|
canvas: Canvas?,
|
||||||
width: Int,
|
width: Int,
|
||||||
|
|||||||
Reference in New Issue
Block a user