skia-python / skia-python/skia-python

Refactor code organization

未关闭
#130 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

enhancement
主要语言
Jupyter Notebook
星标
323
派生
52
平均合并
2 小时 29 分钟
30 天内合并 PR
1

描述

Is your feature request related to a problem? Please describe.
Re-organize binding codes according to Skia header structure. Also rename stub class name in a consistent manner; e.g., from:

py::class_<SkColorFilter, sk_sp<SkColorFilter>, SkFlattenable> colorfilter(m, "ColorFilter");

to:

py::class_<SkColorFilter, sk_sp<SkColorFilter>, SkFlattenable> ColorFilter(m, "ColorFilter");

This is to improve code maintenance over skia version upgrades.

Describe the solution you'd like
In Skia, header files are organized under different directories by categories, such as include/core/*.h or include/gpu/*.h. Presumably, the python package should be also split according to this structure.

Describe alternatives you've considered
n/a

Additional context
n/a

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,将现有的绑定代码与 Skia 的 include/core/.h 和 include/gpu/.h 头文件类别进行映射。检查当前的 stub 类命名,包括 ColorFilter 示例,并在修改之前确定包布局和命名范围。绑定遵循头文件结构且 stub 类名称保持一致,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, python
领域
computer-graphics
Issue 类型
重构
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。