On Fri, 6 May 2022 14:09:13 GMT, Michael Strauß <mstra...@openjdk.org> wrote:

>> Nir Lisker has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Remove unused comments, clean constructor
>
> modules/javafx.graphics/src/main/native-prism-d3d/D3DLight.h line 34:
> 
>> 32: public:
>> 33:     D3DLight() = default;
>> 34:     virtual ~D3DLight() = default;
> 
> It doesn't seem like this class is supposed to be subclassable. I would 
> suggest removing the constructor and destructor declarations and marking the 
> class `final`.

It might be subclassed in the future. One of the next changes will be a 
performance upgrade attempt, and we might need to separate the light types 
instead of bundling them into one that simulates the others.

In theory, this class can be removed even, and instead the Java code could call 
the rendering pipeline directly with all the needed parameters. It's a more 
intrusive change though, and might as well wait for Panama with this one.

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

PR: https://git.openjdk.java.net/jfx/pull/789

Reply via email to