Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rendercanvas/contexts/wgpucontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,11 @@ def _get_bitmap(self, buffer):
# Make a copy of the strided data, and create a view on that.
data = data.copy()[:, : plain_shape[1], :]

elif submethod == "callback":
data = present_params["copy_bitmap"](
mapped_data, dtype, plain_shape, array_stride, nchannels
)

elif submethod == "jpeg":
# For now just a stub, activate in the upcoming Anywidget backend

Expand Down
Loading