本文介绍了通过 Canvas 类硬件绘图是否在 Android 上加速?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对 Canvas.drawPath()/drawArc()/etc 的调用是否被硬件加速,通过到设备本机实现还是用 Java 实现?
Are calls to Canvas.drawPath()/drawArc()/etc hardware accelerated, passedto a device native implementation or implemented in Java?
或者说OpenGL是实现硬件加速绘图的唯一途径?
Or is OpenGL the only way to achieve hardware accelerated drawing?
我正在尝试确定使用 Canvas API 是否可行实时动画.
I am trying to determine if it is feasible to use the Canvas API forrealtime animation.
推荐答案
目前 Canvas 没有硬件加速.
currently Canvas is not hardware accelerated.
源代码中有一些提示,指出在硬件加速器周围实现包装画布调用的计划,但它现在不起作用.
there are hints in the source code which point to the plans of implementing wrapping canvas calls around so HW accelerator, but it's not functional as of now.
这篇关于通过 Canvas 类硬件绘图是否在 Android 上加速?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!