[haiku-development] Re: Help needed for WebKit2 port about app_server and bitmaps
- From: looncraz <looncraz@xxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Mon, 29 Jul 2019 22:46:04 -0500
On 29/07/2019 09.50, Dario Casalinuovo wrote:
I still don't see why you want to use a BBitmap shared between
processes and the app_server.
This partially defeats the purpose of the multiprocess model and break
the "isolation rule".
The shared bitmap is owned by the app_server. The GUI would have
read-only access to the bitmap to draw it into a BView and the rendering
process would do the drawing (either directly or through BView draw calls).
The app_server actually does the drawing using time-tested drawing code
and then the app_server does the final render... the clients just direct
it. The isolation is all about the risky interpretation and external
code execution (web page parsing, javascript, networking, etc...) -
rendering isn't really important to isolate to different processes
beyond potential security concerns.
Even client side rendering would want to use a global bitmap - or allow
foreign processes to draw inside designated frames of another process's
window buffer.
--The loon
Other related posts: