Do not allocate the software surface in displayChanged(). Instead reset the 
current surface and let getPrimarySurfaceData() create the software surface 
lazily




---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8397721: VolatileSurfaceManager.displayChanged() always allocates a software 
surface for every accelerated VolatileImage

Changes: https://git.openjdk.org/jdk/pull/33997/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33997&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8397721
  Stats: 142 lines in 2 files changed: 138 ins; 1 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/33997.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33997/head:pull/33997

PR: https://git.openjdk.org/jdk/pull/33997

Reply via email to