harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chunrong Lai (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5372) [classlib][awt]Harmony has more reDraw in Linux
Date Tue, 08 Jan 2008 02:18:34 GMT
[classlib][awt]Harmony has more reDraw in Linux
-----------------------------------------------

                 Key: HARMONY-5372
                 URL: https://issues.apache.org/jira/browse/HARMONY-5372
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Linux32
            Reporter: Chunrong Lai



 I see Harmony has redundant reDrawing in Linux while it is OK in Windows.
 A simple way to reproduce it is that we can add printing in awt/src/main/java/common/org/apache/harmony/awt/text/TextUtils.drawString
and rebuild Harmony before using it to run demo.jfc.NotePad and type some characters. It is
just observed the type characters are drawn again and again unnecessarily. Although it may
not impact the correctness I believe it makes Harmony execute slowly for GUI applications
in Linux.

    private static void drawString(final String text, final boolean needDraw,
                                   final Graphics g,
                                   final int x, final int y) {
        System.out.println("drawString " + text + " with needDraw " + needDraw); //the added
log printing
        if (needDraw) {
            g.drawString(text, x, y);
        }
    }
 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message