I'm trying to use the hardware acceleration for Android with my canvas. I used to have a SurfaceView
which I did lockCanvas()
on to get a canvas which I later draw on, but I changed to TextureView
since I couldn't get SurfaceView
to use hardware acceleration. I'm currently trying to get this canvas to use hardware acceleration.
Canvas canvas = this.lockCanvas();
System.out.println(this.isHardwareAccelerated() + ", " + canvas.isHardwareAccelerated());
Gives me the output: true, false
(this
is a TextureView
)
Does anyone know why the canvas
is not hardware accelerated, and how to make it so?
Edit: As far as I have found, it seems that I have to use OpenGL. However, I would still like to know if there are any announced plans to make hardware acceleration possible for such a canvas.