Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
style: correct code.
Browse files Browse the repository at this point in the history
  • Loading branch information
errnull committed Jun 19, 2019
1 parent 3ae8390 commit 214e52a
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ internal class SVGACanvasDrawer(videoItem: SVGAVideoEntity, val dynamicItem: SVG

private val shareMattePaint = Paint()
private var shareMatteCanvas: Canvas? = null
private var sharedMatteBitmap: Bitmap? = null
private var sharedClearBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ALPHA_8)
private var sharedMatteBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ALPHA_8)

fun sharedPaint(): Paint {
sharedPaint.reset()
Expand Down Expand Up @@ -372,10 +371,7 @@ internal class SVGACanvasDrawer(videoItem: SVGAVideoEntity, val dynamicItem: SVG
}

fun sharedMatteBitmap(): Bitmap {
sharedMatteBitmap?.let {
return it
}
return sharedClearBitmap
return sharedMatteBitmap
}

fun shareMatteCanvas(width: Int, height: Int): Canvas {
Expand Down

0 comments on commit 214e52a

Please sign in to comment.