Surface和Canvas之间的关系:Android

Surface和Canvas之间究竟有什么关系.

请解释.

表面是缓冲区.画布持有绘图.

Views are not attached to the Canvas
nor the Surface. The window is tied to
a Surface and the ViewRoot asks the
Surface for a Canvas that is then used
by the Views to draw onto.

对于一个详细的anwser,你可以阅读这个whole discussion,非常有趣.

相关文章
相关标签/搜索