[haiku-development] Re: Caya Replicant is not working on gcc2 based builds (BRemoteView !?)

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 28 Feb 2012 12:13:30 -0500

On Tue, Feb 28, 2012 at 10:29 AM, Barrett <barrett666@xxxxxxxxx> wrote:
>
> The second solution come up with a yourpalal's suggestion about something
> like the android's RemoteView,
>
> http://developer.android.com/reference/android/widget/RemoteViews.html
>
> it is basically a view that allow to show drawing operations across
> different processes.
>
> Unfortunately i don't have enough know-how to judge if a BRemoteView is
> feasible, or if the app_server can allow something like that....
>
> What do you think about that idea? In large lines please can anyone tell me
> the basics steps or the main obstacles to allow it in the app_server?

It is totally possible. I created a prototype about 3 years ago to try
to mimic Chrome's multi-process rendering, the code is here:

https://github.com/leavengood/Haiku-Browser/tree/master

Basically RenderBoy is the rendering process and the main browser
process has a ProxyView which forwards mouse moves and clicks to the
render process. The render process draws into a bitmap and sends the
bitmap data to the browser process which displays it in the ProxyView.
I don't know if the design is perfect by any means and I'm sure it
could use a lot of clean-up and optimizing, but it does work.

I imagine you could download that code and still build it with Jam to
try it out.

Extracting that into a more generic BRemoteView would be nice. I don't
know if I have the time to help, but if you do make that please send
the code back my way, or send a patch so we could maybe put it in
Haiku's shared kit.

-- 
Regards,
Ryan

Other related posts: