8382201: Transparent Window is Opaque w/o Volatile Buffering#30737
8382201: Transparent Window is Opaque w/o Volatile Buffering#30737mickleness wants to merge 12 commits into
Conversation
Also RepaintManager may let windows share the same buffer. In this test's case: the white background (in an opaque Frame) set up a large buffer, and the smaller translucent dialog needs to recreate a buffer to provide translucency.
|
👋 Welcome back jwood! A progress list of the required criteria for merging this PR into |
|
@mickleness This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 36 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@prrace, @jayathirthrao) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
@mickleness The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
|
Converting to draft; I want to resolve #30783 first. |
Also simplifying unit test so it doesn't require a white background Frame. The opacity issue is important, but it can be represented as a separate ticket. (I'm trying to keep PRs as simple as possible to speed up/simplify code review.)
I must have gotten my tickets mixed up when I removed these properties. We DO want to toggle opengl (so we test both MTL and CGL), and we want volatile images permanently off for this test.
|
I tested OpenGL and Metal with your test as well as SwingSet and J2Demo and it looks good. |
| /* | ||
| * @test | ||
| * @bug 8382201 | ||
| * @summary This tests window translucency when |
There was a problem hiding this comment.
OK, this is updated
| private void run() { | ||
| try { | ||
| SwingUtilities.invokeAndWait(() -> { | ||
| JDialog translucentDialog = createDialog(); |
There was a problem hiding this comment.
This dialog is never disposed, so you are relying on jtreg shutting the test down to cause the test to terminate.
There was a problem hiding this comment.
OK, this is updated
| * @summary This tests window translucency when | ||
| * `swing.volatileImageBufferEnabled=false` | ||
| * @requires os.family == "mac" | ||
| * @library /java/awt/regtesthelpers |
There was a problem hiding this comment.
I don't see any use of regtesthelpers here
There was a problem hiding this comment.
OK, this is updated
This is in response to: openjdk#30737 (comment)
This is in response to: openjdk#30737 (comment)
This is in response to: openjdk#30737 (comment)
| /* | ||
| * @test | ||
| * @bug 8382201 | ||
| ` * @key headful |
There was a problem hiding this comment.
There's an errant "`" at the beginning of that line
There was a problem hiding this comment.
Ah, sorry. This is updated
This is in response to: https://github.com/openjdk/jdk/pull/30737/changes#r3127004349
jayathirthrao
left a comment
There was a problem hiding this comment.
Change looks good to me, except comment about copyright year.
Verified test behaviour also on my mac.
| @@ -0,0 +1,183 @@ | |||
| /* | |||
| * Copyright (c) 1999, 2026, Oracle and/or its affiliates. All rights reserved. | |||
There was a problem hiding this comment.
This is a new test, it should have only starting year 2026
There was a problem hiding this comment.
OK, this is updated
|
/integrate |
|
@mickleness This pull request has not yet been marked as ready for integration. |
|
/integrate |
|
@mickleness |
|
/integrate |
|
/sponsor |
|
@prrace Only the author (@mickleness) is allowed to issue the |
|
Going to push as commit ebb3d68.
Your commit was automatically rebased without conflicts. |
|
@prrace @mickleness Pushed as commit ebb3d68. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
If
swing.volatileImageBufferEnabledis turned off: MTLGraphicsConfig and CGLGraphicsConfig should use a translucent image for double buffering.This test is marked as mac-only, but it should be harmless to turn that flag off if anyone wants to test other platforms. In previous threads we established that this is a Mac-only issue: #23430 (comment)
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/30737/head:pull/30737$ git checkout pull/30737Update a local copy of the PR:
$ git checkout pull/30737$ git pull https://git.openjdk.org/jdk.git pull/30737/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 30737View PR using the GUI difftool:
$ git pr show -t 30737Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/30737.diff
Using Webrev
Link to Webrev Comment