William Candillon
unread,Apr 17, 2023, 7:24:33 AM4/17/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to skia-d...@googlegroups.com
Hello team,
I have been working with `image = surface->makeImageSnapshot()` where
the surface is GPU-backed, and I encountered some difficulties in
displaying the image on another GPU-backed surface. So far, I have
been able to do this using `image.makeNonTextureImage()`. However, my
concern is that this approach might involve an unnecessary GPU/CPU
roundtrip. Can you please confirm if this is indeed the case and if
there is a more efficient method?
Initially, I believed that the SkImage::MakeFromAdoptedTexture API
would be suitable for this task, but it didn't seem to help.
We have two use-cases for this, one of which being the ability of
providing an efficient backbuffering method to our users.
I attempted to create an example using Skia Fiddle, but whenever I
tried to create an offscreen GPU-backed surface, the process would
time out and result in the following error: "Failed to run, possibly
violated security container: 'Command exited with exit status 1:
HOME=/tmp /usr/local/bin/fiddle_secwrap
/tmp/skia/skia/out/Static/fiddle --duration 0.000000 --frame
0.000000\nSignal: 9\nWIFSIGNALED: Success\n\nFailed to decode JSON
output from fiddle.\nunexpected end of JSON input\nOutput was ""'"
In CanvasKit, the behaviour is identical which leads me to believe
that I might be overlooking some crucial information or understanding
regarding this matter. Any insights or guidance you can provide would
be amazing.
Kind regards,
William