-
Enhancement
-
Resolution: Duplicate
-
P3
-
fx2.0.2
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 inRT-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.
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
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.
- blocks
-
JDK-8098031 Eliminate the need to pass Glass the rendering context to get multi-stage rendering to work on Mac
- Closed
- is blocked by
-
JDK-8101027 Mac Core Animation Layer
- Closed
-
JDK-8101513 CLONE - Glass should not be the owner of graphics context (Glass client should be the owner)
- Closed
- relates to
-
JDK-8118470 Mac: Invalid memory access error
- Resolved
-
JDK-8096813 [Mac] Glass shouldn't use Prism's context for creating or destroying native rendering resources
- Resolved
-
JDK-8101235 Rewrite prism-es2 pipeline to not use OpenGL bindings
- Closed
(1 relates to)