Introduction to Hardware Acceleration (en)
summary
Hardware acceleration lands in Android at API 11 and becomes default when targeting API 14 and up, replacing CPU bitmap drawing with opengl display list operations so the GPU renders recorded ops. Property animations like alpha avoid redrawing child views, but several canvas calls are simply ignored as unsupported canvas ops and produce graphical artifacts. Use setLayerType(LAYER_TYPE_HARDWARE) to upload a view as a GPU texture during animation then revert to save memory, because switching layer types and uploading bitmaps costs time. A planned demo fails. Slides linked above.
AI-written summary · about
chapters (7)
- 0:00Start
- 7:17Display list
- 9:25What is supported?
- 13:06Check for Hardware acceleration
- 16:52Setting the LayerType
- 18:03LAYER TYPE SOFTWARE
- 21:02Bibliographic
related talks
47mG(PU) force
16mAndroid Graphics
40mAndroid Graphics Performance
42mAndroid Graphics: the Path to [UI] Riches
16mHardware acceleration for on-device Machine Learning
36mDrawn out: How Android renders
53mGraphics Something Android Something Performance
21mHow to use hardware acceleration for Machine Learning inference on Android
