United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7124219 [macosx] Unable to draw images to fullscreen
7124219 : [macosx] Unable to draw images to fullscreen

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2012-04-04
Project Name:
JDK
Resolved Date:
2012-04-04
Component:
client-libs
OS:
os_x
Sub-Component:
2d
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-759 submitted 2011/11/30 by tonybeckham
All Java2D manual fullscreen tests fail.  The Fullscreen will turn all grey but the images that are to be displayed are drawn at original size not full screen, including their background.
Tests Affected:
2D_FullScreen/FullScrnFlip
2D_FullScreen/MultiBuffer
2D_FullScreen/DisplayMode
For example, in FullScreenFlip instructions:
Check Simple FullScreen is displayed with flipping strategy for all the GCs available 
Wait till the FullScreen in repeated for all GC value. 
Result:
The full screen goes blank then when the image is shown its background and image are shown in only a portion of the screen (see screen shot)
To reproduce:
Run 2d test suite testlist.2D_FullScreen
Example:
bash /net/sqenfs-1.us.oracle.com/export1/comp/2d/tony/ute/ute run -harness tonga -env TONGA_REMOVE=NONE -env KEYWORDS=manual -stablejavahome /System/Library/Frameworks/JavaVM.framework/Home -component 2d -jdk /net/jre.us.oracle.com/onestop/jdk_mac/7/promoted/latest/binaries/Home -testbase /net/sqenfs-1.us.oracle.com/export1/comp/2d/tony/7_master/2d -testlist testlist.2D_FullScreen -results <RESULT DIR>

                                    

Comments
EVALUATION

Note that these tests use buffer strategy to render the test content. However,
this approach does not work, because method flip() is not implemented in window
component peer. Simplified test case fails with following exception:
java.lang.RuntimeException: unimplemented
at sun.lwawt.macosx.CPlatformWindow.flip(CPlatformWindow.java:427)
at sun.lwawt.LWWindowPeer.flip(LWWindowPeer.java:320)
at java.awt.Component$FlipBufferStrategy.flip(Component.java:4063)
at java.awt.Component$FlipBufferStrategy.show(Component.java:4189)
at simplefullscreentest.SimpleFullScreenTest$AwtFrameTest.useBufferStrategy(SimpleFullScreenTest.java:124)
at simplefullscreentest.SimpleFullScreenTest.main(SimpleFullScreenTest.java:61)

We can implement corresponding method in LWWindowPeer where required buffers area already
present as it was already done for the canvas peer as a part of the fix for CR 7124552.
                                     
2012-03-05
SUGGESTED FIX

http://cr.openjdk.java.net/~bae/7124219/webrev/
                                     
2012-03-05



Hardware and Software, Engineered to Work Together