简介1
Google Android 使用 skia 作为其核心图形引擎。skia 也是 Google Chrome 的图形引擎。
Skia 图形渲染引擎最初由 Skia 公司开发,该公司于 2005 年被 Google 收购。
Skia 与 Openwave's (现在叫 Purple Labs)V7 vector graphics engine 非常 类似,它们都来自于 Mike Reed 的公司。
如果你正在做移动设备上的矢量图形或者图像渲染相关的工作,你应该 checkout skia 的源代码仔细研究下。
Skia is quite elegant in its simplicity and power, a great combination.
"By adding Skia engine to Chrome, Google can ensure good graphics performance on devices that don't have a graphics processing unit."5
Features4
skia 有大概 80,000 行代码,基于 C++ 开发,主要特点包括:
- Optimised software-based rasteriser (module sgl/);
- Optional GL-based acceleration of certain graphics operations including shader support and textures (module gl/);
- Animation capabilities (module animator/);
- Some built-in SVG support (module (svg/)
- Built-in image decoders: PNG, JPEG, GIF, BMP, WBMP, ICO (modules images/);
- Text capabilities (no built-in support for complex scripts);
- Some awareness