CrossContext Texture Sharing with Ganesh

71 views
Skip to first unread message

William Candillon

unread,
May 9, 2024, 1:12:19 PM5/9/24
to skia-discuss
We are encountering a use case where we need to copy a texture from DirectContext A (running on thread A) to DirectContext B (running on thread B). We found the implementation of CrossContextTextureFromPixmap compelling; however, it relies heavily on private APIs.

While we occasionally utilize some private APIs when the number of headers to import is minimal, that is not feasible in this case.

Could you recommend an approach to build a similar feature using public APIs, or is there interest in adding a new SkImage's Ganesh factory method to accommodate such a use case?

Kind regards,

William
Reply all
Reply to author
Forward
0 new messages