Skip to content

v4.4.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@Hparty Hparty released this 14 Aug 06:29
· 25 commits to alpha/4.4 since this release
52a2cdf

主要修改内容:
(1)修复使用 Freetype 渲染矢量 Path 时产生的内存访问越界问题。(#2224)
(2)修复 strlen() 相关调用产生的堆栈溢出安全问题。(#2232)
(3)重构渲染流程以最大化开启 glScissor 来减少不必要的像素渲染。 (#2141)
(4)简化矢量图形缓存机制,使用 TGFX 内置的 Path 缓存替代原先的 Shape 缓存。 (#2158)
(5)修改 PAGImageView 的一些接口,允许回调函数里的 PAGFile 传入空值。(#2191)
(6)通过缓存纹理而不是 Surface 来减少绘制次数,从而优化画面裁剪的绘制性能。(#2206)
(7)全局减少一次不必要的离屏渲染过程实现模糊滤镜的渲染性能提升。(#2098)
(8)在 Font 类上缓存确定尺寸的 Typeface 来提升文本渲染的性能。 (#2132)
(9)通过延迟 emoji 的图片解码过程实现并发解码,优化了 Emoji 的渲染性能。(#176)
(10)新增了对鸿蒙 Next 平台的首个版本适配。 (#2408)

Main revisions:
(1)Fix the out-of-bounds memory access crash when rendering paths with freetype. (#2224)
(2)Fix the heap-buffer-overflow issue by adding boundary check for the strlen() call. (#2232)
(3)Optimize performance by enabling glScissor whenever possible. (#2141)
(4)Replace tgfx::Shape with the built-in cache mechanism of the Path class. (#2158)
(5)Modify some interfaces of PAGImageView to allow PAGFile to be nullable. (#2191)
(6)Optimize clip performance by caching a texture instead of a surface to reduce draw calls. (#2206)
(7)Optimize the performance of blur filters by skipping one unnecessary offscreen rendering pass. (#2098)
(8)Improve text rendering performance by caching typeface size in the Font class. (#2132)
(9)Optimze color emoji drawing performance by deferring glyph image decoding. (#176)
(10)Add support for the ‘HarmonyOS Next’ platform. (#2408)