Rename
This commit is contained in:
1 parent
b86d90021c
commit
6c0757c91b
972 files changed
+6885
-7321
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package io.legato.kazusa.help
|
||||
|
||||
import android.graphics.Paint
|
||||
import io.legato.kazusa.utils.objectpool.BaseSafeObjectPool
|
||||
|
||||
object PaintPool : BaseSafeObjectPool<Paint>(8) {
|
||||
|
||||
private val emptyPaint = Paint()
|
||||
|
||||
override fun create(): Paint = Paint()
|
||||
|
||||
override fun recycle(target: Paint) {
|
||||
target.set(emptyPaint)
|
||||
super.recycle(target)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user