Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8299436

[REDO] D3D pipeline processes multiple PaintEvent at initial drawing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 17, 18
    • client-libs
    • None
    • 2d
    • x86_64
    • windows

    Description

      A DESCRIPTION OF THE PROBLEM :
      On Windows platform, default drawing pipeline (D3D) processes multiple PaintEvent at initial drawing. This behavior does not occur on GDI pipeline (-Dsun.java2d.noddraw=true).

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      compile and run attached sample code on Windows platform. This sample counts a number of paint() calls.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Green window is shown and "1" is printed on console.

      ACTUAL -
      Red window is shown and print "2" is printed on console.

      This additional PaintEvent is unnecessary and may cause performance issue.

      The fix for this issue caused some regression like JDK-8298876 and also the regression test provided fails in some CI systems and is problem listed which suggests the fix was half-baked and there are some corner cases which are not tested.
      So the fix is going to be reverted and will be fixed properly under this id.

      Attachments

        Issue Links

          Activity

            People

              myano Masanori Yano
              psadhukhan Prasanta Sadhukhan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: