[Top][All Lists]

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

Spring-cleaning of gtk peers.

From: Sven de Marothy
Subject: Spring-cleaning of gtk peers.
Date: Fri, 27 May 2005 07:41:43 +0200

Well, I got started on fixing transparency issues with AWT, and now it
seems I'm ending up rewriting most of the image-handling code here.

Most of how this stuff is implemented now makes no sense to me at all.

I propose (and am working on) the following main points:
1) GtkImage is a mess, and is terribly inefficient. Do what was intended
with the AWT 1.1 API and wrap something which can be blitted quickly,
e.g. a 32-bit int vector in gtk-compatible AABBGGRR format.

2) Get rid of GtkImagePainter completely. I have no idea why GtkImage
can't have package-private methods for drawing itself. (And do so

3) Get rid of GtkOffScreenImage. It doesn't seem to serve any real

End result: Less code, simpler code and much, much faster drawing.

Is there anyone in defense of the existing way images are handled?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]