public class sun.java2d.d3d.D3DVolatileSurfaceManager extends sun.awt.image.VolatileSurfaceManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.java2d.d3d.D3DVolatileSurfaceManager
super_class: sun.awt.image.VolatileSurfaceManager
{
private boolean accelerationEnabled;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int restoreCountdown;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(sun.awt.image.SunVolatileImage, java.lang.Object);
descriptor: (Lsun/awt/image/SunVolatileImage;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial sun.awt.image.VolatileSurfaceManager.<init>:(Lsun/awt/image/SunVolatileImage;Ljava/lang/Object;)V
1: aload 1
invokevirtual sun.awt.image.SunVolatileImage.getTransparency:()I
istore 3
start local 3 2: aload 1
invokevirtual sun.awt.image.SunVolatileImage.getGraphicsConfig:()Ljava/awt/GraphicsConfiguration;
invokevirtual java.awt.GraphicsConfiguration.getDevice:()Ljava/awt/GraphicsDevice;
3: checkcast sun.java2d.d3d.D3DGraphicsDevice
astore 4
start local 4 4: aload 0
5: iload 3
iconst_1
if_icmpeq 10
6: iload 3
iconst_3
if_icmpne 9
7: aload 4
iconst_2
invokevirtual sun.java2d.d3d.D3DGraphicsDevice.isCapPresent:(I)Z
ifne 10
8: aload 4
iconst_4
invokevirtual sun.java2d.d3d.D3DGraphicsDevice.isCapPresent:(I)Z
ifne 10
StackMap locals: sun.java2d.d3d.D3DVolatileSurfaceManager sun.awt.image.SunVolatileImage java.lang.Object int sun.java2d.d3d.D3DGraphicsDevice
StackMap stack: sun.java2d.d3d.D3DVolatileSurfaceManager
9: iconst_0
goto 11
StackMap locals:
StackMap stack: sun.java2d.d3d.D3DVolatileSurfaceManager
10: iconst_1
11: StackMap locals: sun.java2d.d3d.D3DVolatileSurfaceManager sun.awt.image.SunVolatileImage java.lang.Object int sun.java2d.d3d.D3DGraphicsDevice
StackMap stack: sun.java2d.d3d.D3DVolatileSurfaceManager int
putfield sun.java2d.d3d.D3DVolatileSurfaceManager.accelerationEnabled:Z
12: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/java2d/d3d/D3DVolatileSurfaceManager;
0 13 1 vImg Lsun/awt/image/SunVolatileImage;
0 13 2 context Ljava/lang/Object;
2 13 3 transparency I
4 13 4 gd Lsun/java2d/d3d/D3DGraphicsDevice;
MethodParameters:
Name Flags
vImg
context
protected boolean isAccelerationEnabled();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.accelerationEnabled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/java2d/d3d/D3DVolatileSurfaceManager;
public void setAccelerationEnabled(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield sun.java2d.d3d.D3DVolatileSurfaceManager.accelerationEnabled:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/java2d/d3d/D3DVolatileSurfaceManager;
0 2 1 accelerationEnabled Z
MethodParameters:
Name Flags
accelerationEnabled
protected sun.java2d.SurfaceData initAcceleratedSurface();
descriptor: ()Lsun/java2d/SurfaceData;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=8, args_size=1
start local 0 0: aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.vImg:Lsun/awt/image/SunVolatileImage;
invokevirtual sun.awt.image.SunVolatileImage.getComponent:()Ljava/awt/Component;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokevirtual java.awt.Component.getPeer:()Ljava/awt/peer/ComponentPeer;
checkcast sun.awt.windows.WComponentPeer
goto 3
StackMap locals: sun.java2d.d3d.D3DVolatileSurfaceManager top java.awt.Component
StackMap stack:
2: aconst_null
3: StackMap locals:
StackMap stack: sun.awt.windows.WComponentPeer
astore 3
start local 3 4: iconst_0
istore 4
start local 4 5: aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.context:Ljava/lang/Object;
instanceof java.lang.Boolean
ifeq 7
6: aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.context:Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 4
7: StackMap locals: sun.awt.windows.WComponentPeer int
StackMap stack:
iload 4
ifeq 10
8: aload 3
aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.vImg:Lsun/awt/image/SunVolatileImage;
invokestatic sun.java2d.d3d.D3DSurfaceData.createData:(Lsun/awt/windows/WComponentPeer;Ljava/awt/Image;)Lsun/java2d/d3d/D3DSurfaceData;
astore 1
start local 1 9: goto 31
end local 1 10: StackMap locals:
StackMap stack:
aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.vImg:Lsun/awt/image/SunVolatileImage;
invokevirtual sun.awt.image.SunVolatileImage.getGraphicsConfig:()Ljava/awt/GraphicsConfiguration;
checkcast sun.java2d.d3d.D3DGraphicsConfig
11: astore 5
start local 5 12: aload 5
aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.vImg:Lsun/awt/image/SunVolatileImage;
invokevirtual sun.awt.image.SunVolatileImage.getTransparency:()I
invokevirtual sun.java2d.d3d.D3DGraphicsConfig.getColorModel:(I)Ljava/awt/image/ColorModel;
astore 6
start local 6 13: aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.vImg:Lsun/awt/image/SunVolatileImage;
invokevirtual sun.awt.image.SunVolatileImage.getForcedAccelSurfaceType:()I
istore 7
start local 7 14: iload 7
ifne 16
15: iconst_5
istore 7
16: StackMap locals: sun.java2d.d3d.D3DGraphicsConfig java.awt.image.ColorModel int
StackMap stack:
aload 5
17: aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.vImg:Lsun/awt/image/SunVolatileImage;
invokevirtual sun.awt.image.SunVolatileImage.getWidth:()I
18: aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.vImg:Lsun/awt/image/SunVolatileImage;
invokevirtual sun.awt.image.SunVolatileImage.getHeight:()I
19: aload 6
aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.vImg:Lsun/awt/image/SunVolatileImage;
20: iload 7
21: invokestatic sun.java2d.d3d.D3DSurfaceData.createData:(Lsun/java2d/d3d/D3DGraphicsConfig;IILjava/awt/image/ColorModel;Ljava/awt/Image;I)Lsun/java2d/d3d/D3DSurfaceData;
astore 1
end local 7 end local 6 end local 5 end local 4 start local 1 22: goto 31
end local 1 StackMap locals: sun.java2d.d3d.D3DVolatileSurfaceManager top java.awt.Component sun.awt.windows.WComponentPeer
StackMap stack: java.lang.NullPointerException
23: pop
24: aconst_null
astore 1
start local 1 25: goto 31
end local 1 26: StackMap locals:
StackMap stack: java.lang.OutOfMemoryError
pop
27: aconst_null
astore 1
start local 1 28: goto 31
end local 1 29: StackMap locals:
StackMap stack: sun.java2d.InvalidPipeException
pop
30: aconst_null
astore 1
start local 1 31: StackMap locals: sun.java2d.d3d.D3DVolatileSurfaceManager sun.java2d.SurfaceData java.awt.Component sun.awt.windows.WComponentPeer
StackMap stack:
aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lsun/java2d/d3d/D3DVolatileSurfaceManager;
9 10 1 sData Lsun/java2d/SurfaceData;
22 23 1 sData Lsun/java2d/SurfaceData;
25 26 1 sData Lsun/java2d/SurfaceData;
28 29 1 sData Lsun/java2d/SurfaceData;
31 32 1 sData Lsun/java2d/SurfaceData;
1 32 2 comp Ljava/awt/Component;
4 32 3 peer Lsun/awt/windows/WComponentPeer;
5 22 4 forceback Z
12 22 5 gc Lsun/java2d/d3d/D3DGraphicsConfig;
13 22 6 cm Ljava/awt/image/ColorModel;
14 22 7 type I
Exception table:
from to target type
4 22 23 Class java.lang.NullPointerException
4 22 26 Class java.lang.OutOfMemoryError
4 22 29 Class sun.java2d.InvalidPipeException
protected boolean isConfigValid(java.awt.GraphicsConfiguration);
descriptor: (Ljava/awt/GraphicsConfiguration;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.vImg:Lsun/awt/image/SunVolatileImage;
invokevirtual sun.awt.image.SunVolatileImage.getGraphicsConfig:()Ljava/awt/GraphicsConfiguration;
if_acmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/java2d/d3d/D3DVolatileSurfaceManager;
0 2 1 gc Ljava/awt/GraphicsConfiguration;
MethodParameters:
Name Flags
gc
private synchronized void setRestoreCountdown(int);
descriptor: (I)V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield sun.java2d.d3d.D3DVolatileSurfaceManager.restoreCountdown:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/java2d/d3d/D3DVolatileSurfaceManager;
0 2 1 count I
MethodParameters:
Name Flags
count
protected void restoreAcceleratedSurface();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.restoreCountdown:I
ifle 6
2: aload 0
dup
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.restoreCountdown:I
iconst_1
isub
putfield sun.java2d.d3d.D3DVolatileSurfaceManager.restoreCountdown:I
3: new sun.java2d.InvalidPipeException
dup
new java.lang.StringBuilder
dup
ldc "Will attempt to restore surface in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.restoreCountdown:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial sun.java2d.InvalidPipeException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: sun.java2d.d3d.D3DVolatileSurfaceManager
StackMap stack:
aload 1
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 1
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.java2d.d3d.D3DVolatileSurfaceManager.initAcceleratedSurface:()Lsun/java2d/SurfaceData;
astore 1
start local 1 11: aload 1
ifnull 14
12: aload 0
aload 1
putfield sun.java2d.d3d.D3DVolatileSurfaceManager.sdAccel:Lsun/java2d/SurfaceData;
13: goto 15
14: StackMap locals: sun.java2d.SurfaceData
StackMap stack:
new sun.java2d.InvalidPipeException
dup
ldc "could not restore surface"
invokespecial sun.java2d.InvalidPipeException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/java2d/d3d/D3DVolatileSurfaceManager;
11 16 1 sData Lsun/java2d/SurfaceData;
Exception table:
from to target type
1 7 8 any
8 9 8 any
public sun.java2d.SurfaceData restoreContents();
descriptor: ()Lsun/java2d/SurfaceData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.java2d.d3d.D3DVolatileSurfaceManager.acceleratedSurfaceLost:()V
1: aload 0
invokespecial sun.awt.image.VolatileSurfaceManager.restoreContents:()Lsun/java2d/SurfaceData;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/java2d/d3d/D3DVolatileSurfaceManager;
static void handleVItoScreenOp(sun.java2d.SurfaceData, sun.java2d.SurfaceData);
descriptor: (Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
instanceof sun.java2d.d3d.D3DSurfaceData
ifeq 19
1: aload 1
instanceof sun.java2d.windows.GDIWindowSurfaceData
ifeq 19
2: aload 0
checkcast sun.java2d.d3d.D3DSurfaceData
astore 2
start local 2 3: aload 2
invokevirtual sun.java2d.d3d.D3DSurfaceData.getDestination:()Ljava/lang/Object;
checkcast java.awt.Image
invokestatic sun.awt.image.SurfaceManager.getManager:(Ljava/awt/Image;)Lsun/awt/image/SurfaceManager;
4: astore 3
start local 3 5: aload 3
instanceof sun.java2d.d3d.D3DVolatileSurfaceManager
ifeq 19
6: aload 3
checkcast sun.java2d.d3d.D3DVolatileSurfaceManager
astore 4
start local 4 7: aload 4
ifnull 19
8: aload 2
iconst_1
invokevirtual sun.java2d.d3d.D3DSurfaceData.setSurfaceLost:(Z)V
9: aload 1
checkcast sun.java2d.windows.GDIWindowSurfaceData
astore 5
start local 5 10: aload 5
invokevirtual sun.java2d.windows.GDIWindowSurfaceData.getPeer:()Lsun/awt/windows/WComponentPeer;
astore 6
start local 6 11: aload 6
12: aload 6
invokevirtual sun.awt.windows.WComponentPeer.getGraphicsConfiguration:()Ljava/awt/GraphicsConfiguration;
checkcast sun.awt.Win32GraphicsConfig
13: aload 6
invokevirtual sun.awt.windows.WComponentPeer.getBackBuffersNum:()I
14: invokestatic sun.java2d.d3d.D3DScreenUpdateManager.canUseD3DOnScreen:(Lsun/awt/windows/WComponentPeer;Lsun/awt/Win32GraphicsConfig;I)Z
15: ifeq 18
16: aload 4
bipush 10
invokevirtual sun.java2d.d3d.D3DVolatileSurfaceManager.setRestoreCountdown:(I)V
17: goto 19
18: StackMap locals: sun.java2d.SurfaceData sun.java2d.SurfaceData sun.java2d.d3d.D3DSurfaceData sun.awt.image.SurfaceManager sun.java2d.d3d.D3DVolatileSurfaceManager sun.java2d.windows.GDIWindowSurfaceData sun.awt.windows.WComponentPeer
StackMap stack:
aload 4
iconst_0
invokevirtual sun.java2d.d3d.D3DVolatileSurfaceManager.setAccelerationEnabled:(Z)V
end local 6 end local 5 end local 4 end local 3 end local 2 19: StackMap locals: sun.java2d.SurfaceData sun.java2d.SurfaceData
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 src Lsun/java2d/SurfaceData;
0 20 1 dst Lsun/java2d/SurfaceData;
3 19 2 d3dsd Lsun/java2d/d3d/D3DSurfaceData;
5 19 3 mgr Lsun/awt/image/SurfaceManager;
7 19 4 vsm Lsun/java2d/d3d/D3DVolatileSurfaceManager;
10 19 5 wsd Lsun/java2d/windows/GDIWindowSurfaceData;
11 19 6 p Lsun/awt/windows/WComponentPeer;
MethodParameters:
Name Flags
src
dst
public void initContents();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.java2d.d3d.D3DVolatileSurfaceManager.vImg:Lsun/awt/image/SunVolatileImage;
invokevirtual sun.awt.image.SunVolatileImage.getForcedAccelSurfaceType:()I
iconst_3
if_icmpeq 2
1: aload 0
invokespecial sun.awt.image.VolatileSurfaceManager.initContents:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/java2d/d3d/D3DVolatileSurfaceManager;
}
SourceFile: "D3DVolatileSurfaceManager.java"