Artur Biesiadowski <[EMAIL PROTECTED]> writes:

> 1) Looking at current GtkImage implementation, both addConsumer and
> startProduction add consumers to list.

This is due to my interpretation of the Sun spec -- or lack thereof.
The ImageConsumer spec, with regard to how to handle ImageConsumers, for
all cases, is grossly under specified.  Some testing with how the
Motif AWT handles things should probably be in order (especially
w.r.t. multiple threads requesting loading of the same image at
different stages in production.)

> Anyway it is something to look at (maybe Set should be used instead
> of List/Vector).

I'd like to stay away from Java 1.2 code for the AWT, since it's
intended to work under Sun's JDK 1.1.  Yes, we could ship extra
classes, but I'd prefer not too.

> 2) If you will decide to use java png implementation, then it is
> very easy - PngImage implements ImageProducer, so you just need only
> to add call in toolkit in correct place after recognizing image
> type.

I'm more worried about maintenance/bug fixes, as opposed to speed.
libpng is still being updated with bug fixes.  I should probably try
to get in contact with the Nokleberg.

-- 
Paul Fisher * [EMAIL PROTECTED]

Reply via email to