Closed jschwe closed 4 months ago
Could it just reuse the same Android implementation and add #[cfg(ohos)]
when it's necessary?
Could it just reuse the same Android implementation and add #[cfg(ohos)] when it's necessary?
Hmm, perhaps the common parts could be extracted to a shared egl
implementation.
@mrobinson Do you have any opinions regarding this PR and https://github.com/servo/surfman/pull/290? Would you prefer if the android and ohos implementations would be merged into one directory?
@mrobinson Do you have any opinions regarding this PR and #290? Would you prefer if the android and ohos implementations would be merged into one directory?
Sorry for taking so long to look at this. I think that if both platforms use EGL and they have a lot of shared code it probably makes sense to make a shard EGL backend, as you say.
Superceded by #293
This adds support all the surfman APIs servo seems to be requiring on OpenHarmony. Generic surfaces are not supported at the moment. This patch is heavily based on the existing android implementation.