JDK-8098102 : Glass should not be the owner of graphics context (Glass client should be the owner)
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0.2
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2011-10-21
  • Updated: 2015-06-12
  • Resolved: 2015-01-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u60Resolved
Related Reports
Blocks :  
Blocks :  
Blocks :  
Relates :  
Relates :  
Relates :  
Description
The original is intended for Runtime project.

While investigating http://javafx-jira.kenai.com/browse/RT-17345 I came to the conclusion that the current ownership of graphics context is wrong.

The reason we hit the issue in RT-17345 is because currently Glass owns the on-screen graphics context and requires the client to lock the View if it wants to use the context - ex: for releasing its resources. However, if the client happens to destroy the View then it can no longer use the graphics context.

We could require the client to change so that it releases any resource before closing the View, however, that should not be required if the graphics context was to be owned by the Glass client (ie. Prism)

If that were the case, then the client can release View at any time, and still be free to use its graphics context for releasing any resources. This is a much nicer scenario.

The changes related to this need to be done both in Glass and Glass client (ie. Prism)

For Glass we need to change the View to take the graphics context in the constructor.

For Prism we need to change the code, so that it creates the graphics context and then passes it to Glass when creating the View.
Comments
This issue will be resolved by the fix to RT-39008
17-01-2015

Move to Van Ness and up Priority to Major.
16-07-2013

Removed 8-client-defer-candidate tag since this is a Tweak. Only bugs need to be explicitly deferred.
16-07-2013

This is a good clean up task but we might have past the window of opportunity for this tweak to get done. Tag with 8-client-defer-candidate for evaluation.
16-07-2013

Solving this issue on Mac will help to simplify the re-write of es2 on the use ogl bindings.
06-03-2012

Reschedule to 2.2 as this is too late for 2.1. We need participation from Glass to get this implemented.
18-01-2012

OK / SQE
14-12-2011

SQE: no impact
02-12-2011

This seems like something that should be resolved in the 2.1 time frame.
21-10-2011