<AWT Dev> [8] Review request for 7124244: [macosx] Shaped windows support

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Jun 5 11:25:16 PDT 2012


05.06.2012 19:05, Anthony Petrov написал:
> Hi Sergey,
>
> A couple of comments:
>
> 1. src/macosx/classes/sun/lwawt/LWWindowPeer.java
>>  576         //flushOnscreenGraphics();
>
> There's no any explanation as to why this line is commented out. Could 
> you either add a remark in the code, or delete this line altogether?
Yes. Thanks.
>
> 2. How does the fix affect the performance of non-opaque (and opaque, 
> too) windows?
In general a non-opaque window should work better just because now it 
doesn't use raw BufferedImage. Opaque window should be affected only by 
changes in RepaintManager().
>
> -- 
> best regards,
> Anthony
>
> On 6/4/2012 7:49 PM, Sergey Bylokhov wrote:
>> Hi Everyone,
>> Please review the fix.
>>
>> Shaped window was implemented as a translucent window with 
>> constrained graphics. Now translucent window doesn't use separate 
>> BufferedImage as a back buffer. Also alpha value for the swing back 
>> buffer was enabled(Shared code changed).
>> Note that shaped windows are affected by this bugs:
>> http://monaco.us.oracle.com/detail.jsf?cr=7124236
>>  - Shadows disappear.
>>  - Transparent areas aren't transparent to mouse clicks.
>> http://monaco.sfbay.sun.com/detail.jsf?cr=7172431
>>  - Opacity does not work for non opaque windows.
>>
>> Any suggestions are welcome.
>>
>> Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7124244
>> Webrev can be found at: 
>> http://cr.openjdk.java.net/~serb/7124244/webrev.00
>>


-- 
Best regards, Sergey.



More information about the macosx-port-dev mailing list