BarGraph creates bitmap very slowly
Issue #30
resolved
The line
Bitmap.createBitmap(getWidth(), getHeight(), Config.ARGB_8888);
in bargraph.java is used in the intermediary Canvas canvas before being drawn on the canvas ca from onDraw(Canvas ca). This was probably done in a noble effort to reduce overdraw. However, the createBitmap function, as well as the copyBitmap function i tried to mitigate this issue, all take a very long time, 25-40 ms on my galaxy s3 for a 200 px tall image. Drawing directly to the onDraw canvas therefore ends up being 10x faster.
Unless there is a compelling reason I'm not seeing, the graph should be drawn directly on Canvas ca.
Comments (2)
-
Account Deleted -
reporter - changed status to resolved
resolved pull #37
- Log in to comment
Intermediary Canvas has been removed.