OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 8:46 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Application-drawn component in a window server
PostPosted: Wed Jun 22, 2016 3:31 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
willedwards wrote:
On Symbian it was very rare to use bitmap-backed windows. Typically, the draw commands were buffered and sent via IPC to the Window Server, which then stored them. The Window Server could replay these command buffers to regenerate anything. This worked exceedingly well, and with a bit of proxying we were able to transparently embed the draw commands emitted by one app inside another. I touch on that in this old blog post: http://williamedwardscoder.tumblr.com/p ... in-android
It's an interesting approach to send the drawing commands, the only problem I see with that is that the applications are not really free to use whatever painting library they want. By just providing a RGBA buffer, applications can do with it what they want and must not rely on specific OS functions.

Were you part of the Symbian OS developer team? My props to you, even though it's not that much used anymore, I think it was great work.

_________________
Ghost OS - GitHub


Top
 Profile  
 
 Post subject: Re: Application-drawn component in a window server
PostPosted: Wed Jun 22, 2016 5:15 am 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
max wrote:
It's an interesting approach to send the drawing commands, the only problem I see with that is that the applications are not really free to use whatever painting library they want. By just providing a RGBA buffer, applications can do with it what they want and must not rely on specific OS functions.
+1 for the buffer idea. Unless you're going to implement all sorts of drawing libraries server-side, or allow a client to install its own library on the server (neither of which sounds like a good idea), a buffer is the way to go.

Nevertheless, installing libraries on the server sounds like an *interesting* idea, I wonder how one could establish an effective and flexible way to communicate with the library, whatever library it is, without massive security implications (bonus points for the server sandboxing the library without breaking it)...

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: Application-drawn component in a window server
PostPosted: Wed Jun 22, 2016 7:21 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
onlyonemac wrote:
max wrote:
It's an interesting approach to send the drawing commands, the only problem I see with that is that the applications are not really free to use whatever painting library they want. By just providing a RGBA buffer, applications can do with it what they want and must not rely on specific OS functions.
+1 for the buffer idea. Unless you're going to implement all sorts of drawing libraries server-side, or allow a client to install its own library on the server (neither of which sounds like a good idea), a buffer is the way to go.

Nevertheless, installing libraries on the server sounds like an *interesting* idea, I wonder how one could establish an effective and flexible way to communicate with the library, whatever library it is, without massive security implications (bonus points for the server sandboxing the library without breaking it)...
This would probably require something like Java's RMI. With such a prerequesite it would have both the advantages that willedwards pointed out and still allow applications to be free of choice. Yet the libraries most likely would have to be adjusted to conform with whatever framework performs the RMI calls. Nice idea though

_________________
Ghost OS - GitHub


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 75 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group