Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Use lockHardwareCanvas on UI rendering (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Nov 20, 2018
1 parent 5e4f9cf commit db7e37f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Canvas drawBegin() {
mSurfaceCanvas = null;
if (mSurface != null) {
try {
mSurfaceCanvas = mSurface.lockCanvas(null);
mSurfaceCanvas = mSurface.lockHardwareCanvas();
mSurfaceCanvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);
}
catch (Exception e){
Expand Down

0 comments on commit db7e37f

Please sign in to comment.