classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] RFC: Swing/Java2D fixes


From: Ziga Mahkovec
Subject: [cp-patches] RFC: Swing/Java2D fixes
Date: Sun, 26 Jun 2005 16:55:19 +0200

Following up my previous patch[1], this patch enables the use of
BufferedImages for component double buffering.  This results in much
better performance and surprisingly even fixes the Pango text rendering
issues.

Swing on Cairo now hopefully passes Mark's pre-release smoke test :)

  http://bootchart.org/misc/classpath/swing-j2d-2.png


OK to commit? (note that this patch relies on [1])
-- 
Ziga

[1] http://lists.gnu.org/archive/html/classpath-patches/2005-06/msg00311.html


2005-06-26  Ziga Mahkovec  <address@hidden>

        * gnu/java/awt/peer/gtk/GdkGraphics2D.java (constructors): Default to
        a transparent background instead of black.
        (drawImage): When drawing a raster, pass live data to avoid copying.
        * gnu/java/awt/peer/gtk/GtkComponentPeer.java (createImage): Return
        a BufferedImage when using Graphics2D.
        * javax/swing/JComponent.java (getComponentGraphics): Avoid copying
        Graphics2D instances.
        * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
        (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_copyState): Copy the pixel
        buffer and initialize a new cairo context in MODE_JAVA_ARRAY.
        (Java_gnu_java_awt_peer_gtk_GdkGraphics2D_drawPixels): Revert
        previous transformation patch.

Attachment: swing-j2d.patch
Description: Text Data


reply via email to

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