Re: Virtualizing paint functions



On Mon, 2006-04-03 at 23:30 +0200, Anders Carlsson wrote:
> Hello,
> 
> for the Quartz backend I'd like to use the native versions of some 
> things GTK+ normally provides. These are:
> 
> * Double buffering (gdk_window_begin/end_paint)
> 
> * Invalidating regions (gdk_window_invalidate_region, 
> gdk_window_process_updates)
> 
> In order to do that I'd like to make it possible to replace some of the 
> functions. I currently have a patch that adds a function call:
> 
> void _gdk_set_paint_functions (GdkBeginPaintRegionFunc       
> begin_paint_region,
>                    GdkEndPaintFunc               end_paint,
>                    GdkInvalidateMaybeRecurseFunc invalidate_maybe_recurse,
>                    GdkProcessUpdatesFunc         process_updates,
>                    GdkProcessAllUpdatesFunc      process_all_updates);
> 
> which lets backends (this is for obvious reasons NOT a public API) 
> provide their own implementations of some functions.
> 
> I'd like to hear opinions on this from other backend maintainers.

I recently extracted the redirect-window-to-pixmap part of the offscreen
windows patch (see last patch in bz #318807). This relies in some part
on the begin/end_paint double buffering. Would it be possible to
implement this differently in OSX?

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an unconventional zombie inventor searching for his wife's true killer. 
She's a beautiful Bolivian museum curator from out of town. They fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]