class com.sun.prism.d3d.D3DResourceFactory extends com.sun.prism.impl.ps.BaseShaderFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.prism.d3d.D3DResourceFactory
super_class: com.sun.prism.impl.ps.BaseShaderFactory
{
private static final java.util.Map<com.sun.prism.Image, com.sun.prism.Texture> clampTexCache;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Lcom/sun/prism/Image;Lcom/sun/prism/Texture;>;
private static final java.util.Map<com.sun.prism.Image, com.sun.prism.Texture> repeatTexCache;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Lcom/sun/prism/Image;Lcom/sun/prism/Texture;>;
private static final java.util.Map<com.sun.prism.Image, com.sun.prism.Texture> mipmapTexCache;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Lcom/sun/prism/Image;Lcom/sun/prism/Texture;>;
private final com.sun.prism.d3d.D3DContext context;
descriptor: Lcom/sun/prism/d3d/D3DContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int maxTextureSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.LinkedList<com.sun.prism.d3d.D3DResource$D3DRecord> records;
descriptor: Ljava/util/LinkedList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/LinkedList<Lcom/sun/prism/d3d/D3DResource$D3DRecord;>;
static final int STATS_FREQUENCY;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
private int nFrame;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private com.sun.prism.d3d.D3DFrameStats frameStats;
descriptor: Lcom/sun/prism/d3d/D3DFrameStats;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
putstatic com.sun.prism.d3d.D3DResourceFactory.clampTexCache:Ljava/util/Map;
1: new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
putstatic com.sun.prism.d3d.D3DResourceFactory.repeatTexCache:Ljava/util/Map;
2: new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
putstatic com.sun.prism.d3d.D3DResourceFactory.mipmapTexCache:Ljava/util/Map;
3: getstatic com.sun.prism.impl.PrismSettings.prismStatFrequency:I
putstatic com.sun.prism.d3d.D3DResourceFactory.STATS_FREQUENCY:I
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(long, com.sun.glass.ui.Screen);
descriptor: (JLcom/sun/glass/ui/Screen;)V
flags: (0x0000)
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getstatic com.sun.prism.d3d.D3DResourceFactory.clampTexCache:Ljava/util/Map;
getstatic com.sun.prism.d3d.D3DResourceFactory.repeatTexCache:Ljava/util/Map;
getstatic com.sun.prism.d3d.D3DResourceFactory.mipmapTexCache:Ljava/util/Map;
invokespecial com.sun.prism.impl.ps.BaseShaderFactory.<init>:(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;)V
1: aload 0
2: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield com.sun.prism.d3d.D3DResourceFactory.records:Ljava/util/LinkedList;
3: aload 0
iconst_m1
putfield com.sun.prism.d3d.D3DResourceFactory.nFrame:I
4: aload 0
new com.sun.prism.d3d.D3DContext
dup
lload 1
aload 3
aload 0
invokespecial com.sun.prism.d3d.D3DContext.<init>:(JLcom/sun/glass/ui/Screen;Lcom/sun/prism/d3d/D3DResourceFactory;)V
putfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
5: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.initState:()V
6: aload 0
aload 0
invokevirtual com.sun.prism.d3d.D3DResourceFactory.computeMaxTextureSize:()I
putfield com.sun.prism.d3d.D3DResourceFactory.maxTextureSize:I
7: getstatic com.sun.prism.impl.PrismSettings.noClampToZero:Z
ifeq 9
getstatic com.sun.prism.impl.PrismSettings.verbose:Z
ifeq 9
8: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "prism.noclamptozero not supported by D3D"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: StackMap locals: com.sun.prism.d3d.D3DResourceFactory long com.sun.glass.ui.Screen
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 10 1 pContext J
0 10 3 screen Lcom/sun/glass/ui/Screen;
MethodParameters:
Name Flags
pContext
screen
com.sun.prism.d3d.D3DContext getContext();
descriptor: ()Lcom/sun/prism/d3d/D3DContext;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
public com.sun.prism.impl.TextureResourcePool getTextureResourcePool();
descriptor: ()Lcom/sun/prism/impl/TextureResourcePool;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic com.sun.prism.d3d.D3DVramPool.instance:Lcom/sun/prism/d3d/D3DVramPool;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
private void displayPrismStatistics();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic com.sun.prism.d3d.D3DResourceFactory.STATS_FREQUENCY:I
ifle 6
1: aload 0
dup
getfield com.sun.prism.d3d.D3DResourceFactory.nFrame:I
iconst_1
iadd
dup_x1
putfield com.sun.prism.d3d.D3DResourceFactory.nFrame:I
getstatic com.sun.prism.d3d.D3DResourceFactory.STATS_FREQUENCY:I
if_icmpne 6
2: aload 0
iconst_0
putfield com.sun.prism.d3d.D3DResourceFactory.nFrame:I
3: aload 0
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
iconst_1
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.frameStats:Lcom/sun/prism/d3d/D3DFrameStats;
invokevirtual com.sun.prism.d3d.D3DContext.getFrameStats:(ZLcom/sun/prism/d3d/D3DFrameStats;)Lcom/sun/prism/d3d/D3DFrameStats;
putfield com.sun.prism.d3d.D3DResourceFactory.frameStats:Lcom/sun/prism/d3d/D3DFrameStats;
4: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.frameStats:Lcom/sun/prism/d3d/D3DFrameStats;
ifnull 6
5: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.frameStats:Lcom/sun/prism/d3d/D3DFrameStats;
getstatic com.sun.prism.d3d.D3DResourceFactory.STATS_FREQUENCY:I
invokevirtual com.sun.prism.d3d.D3DFrameStats.toDebugString:(I)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
public boolean isDeviceReady();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.prism.d3d.D3DResourceFactory.displayPrismStatistics:()V
1: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.testLostStateAndReset:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
static int nextPowerOfTwo(int, int);
descriptor: (II)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 0
iload 1
if_icmple 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_1
istore 2
start local 2 3: goto 5
4: StackMap locals: int
StackMap stack:
iload 2
iconst_2
imul
istore 2
5: StackMap locals:
StackMap stack:
iload 2
iload 0
if_icmplt 4
6: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 val I
0 7 1 max I
3 7 2 i I
MethodParameters:
Name Flags
val
max
public boolean isCompatibleTexture(com.sun.prism.Texture);
descriptor: (Lcom/sun/prism/Texture;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.sun.prism.d3d.D3DTexture
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 1 1 tex Lcom/sun/prism/Texture;
MethodParameters:
Name Flags
tex
public com.sun.prism.d3d.D3DTexture createTexture(com.sun.prism.PixelFormat, com.sun.prism.Texture$Usage, com.sun.prism.Texture$WrapMode, int, int);
descriptor: (Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$Usage;Lcom/sun/prism/Texture$WrapMode;II)Lcom/sun/prism/d3d/D3DTexture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
aload 3
iload 4
iload 5
iconst_0
invokevirtual com.sun.prism.d3d.D3DResourceFactory.createTexture:(Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$Usage;Lcom/sun/prism/Texture$WrapMode;IIZ)Lcom/sun/prism/d3d/D3DTexture;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 1 1 format Lcom/sun/prism/PixelFormat;
0 1 2 usagehint Lcom/sun/prism/Texture$Usage;
0 1 3 wrapMode Lcom/sun/prism/Texture$WrapMode;
0 1 4 w I
0 1 5 h I
MethodParameters:
Name Flags
format
usagehint
wrapMode
w
h
public com.sun.prism.d3d.D3DTexture createTexture(com.sun.prism.PixelFormat, com.sun.prism.Texture$Usage, com.sun.prism.Texture$WrapMode, int, int, boolean);
descriptor: (Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$Usage;Lcom/sun/prism/Texture$WrapMode;IIZ)Lcom/sun/prism/d3d/D3DTexture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=12, locals=16, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
invokevirtual com.sun.prism.d3d.D3DResourceFactory.isFormatSupported:(Lcom/sun/prism/PixelFormat;)Z
ifne 6
1: new java.lang.UnsupportedOperationException
dup
2: new java.lang.StringBuilder
dup
ldc "Pixel format "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
3: ldc " not supported on this device"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 1
getstatic com.sun.prism.PixelFormat.MULTI_YCbCr_420:Lcom/sun/prism/PixelFormat;
if_acmpne 8
7: new java.lang.UnsupportedOperationException
dup
ldc "MULTI_YCbCr_420 textures require a MediaFrame"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
getstatic com.sun.prism.impl.PrismSettings.forcePow2:Z
ifeq 12
9: iload 4
ldc 2147483647
invokestatic com.sun.prism.d3d.D3DResourceFactory.nextPowerOfTwo:(II)I
istore 7
start local 7 10: iload 5
ldc 2147483647
invokestatic com.sun.prism.d3d.D3DResourceFactory.nextPowerOfTwo:(II)I
istore 8
start local 8 11: goto 14
end local 8 end local 7 12: StackMap locals:
StackMap stack:
iload 4
istore 7
start local 7 13: iload 5
istore 8
start local 8 14: StackMap locals: int int
StackMap stack:
getstatic com.sun.prism.d3d.D3DVramPool.instance:Lcom/sun/prism/d3d/D3DVramPool;
astore 9
start local 9 15: aload 9
iload 7
iload 8
aload 1
invokevirtual com.sun.prism.d3d.D3DVramPool.estimateTextureSize:(IILcom/sun/prism/PixelFormat;)J
lstore 10
start local 10 16: aload 9
lload 10
invokevirtual com.sun.prism.d3d.D3DVramPool.prepareForAllocation:(J)Z
ifne 18
17: aconst_null
areturn
18: StackMap locals: com.sun.prism.d3d.D3DVramPool long
StackMap stack:
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.getContextHandle:()J
19: aload 1
invokevirtual com.sun.prism.PixelFormat.ordinal:()I
aload 2
invokevirtual com.sun.prism.Texture$Usage.ordinal:()I
20: iconst_0
iload 7
iload 8
iconst_0
iload 6
21: invokestatic com.sun.prism.d3d.D3DResourceFactory.nCreateTexture:(JIIZIIIZ)J
lstore 12
start local 12 22: lload 12
lconst_0
lcmp
ifne 24
23: aconst_null
areturn
24: StackMap locals: long
StackMap stack:
lload 12
invokestatic com.sun.prism.d3d.D3DResourceFactory.nGetTextureWidth:(J)I
istore 14
start local 14 25: lload 12
invokestatic com.sun.prism.d3d.D3DResourceFactory.nGetTextureHeight:(J)I
istore 15
start local 15 26: aload 3
getstatic com.sun.prism.Texture$WrapMode.CLAMP_NOT_NEEDED:Lcom/sun/prism/Texture$WrapMode;
if_acmpeq 28
iload 4
iload 14
if_icmplt 27
iload 5
iload 15
if_icmpge 28
27: StackMap locals: int int
StackMap stack:
aload 3
invokevirtual com.sun.prism.Texture$WrapMode.simulatedVersion:()Lcom/sun/prism/Texture$WrapMode;
astore 3
28: StackMap locals:
StackMap stack:
new com.sun.prism.d3d.D3DTexture
dup
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
aload 1
aload 3
lload 12
iload 14
iload 15
iload 4
iload 5
iload 6
invokespecial com.sun.prism.d3d.D3DTexture.<init>:(Lcom/sun/prism/d3d/D3DContext;Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$WrapMode;JIIIIZ)V
areturn
end local 15 end local 14 end local 12 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 29 1 format Lcom/sun/prism/PixelFormat;
0 29 2 usagehint Lcom/sun/prism/Texture$Usage;
0 29 3 wrapMode Lcom/sun/prism/Texture$WrapMode;
0 29 4 w I
0 29 5 h I
0 29 6 useMipmap Z
10 12 7 allocw I
13 29 7 allocw I
11 12 8 alloch I
14 29 8 alloch I
15 29 9 pool Lcom/sun/prism/d3d/D3DVramPool;
16 29 10 size J
22 29 12 pResource J
25 29 14 texw I
26 29 15 texh I
MethodParameters:
Name Flags
format
usagehint
wrapMode
w
h
useMipmap
public com.sun.prism.Texture createTexture(com.sun.prism.MediaFrame);
descriptor: (Lcom/sun/prism/MediaFrame;)Lcom/sun/prism/Texture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=12, locals=16, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface com.sun.prism.MediaFrame.holdFrame:()V
1: aload 1
invokeinterface com.sun.prism.MediaFrame.getWidth:()I
istore 2
start local 2 2: aload 1
invokeinterface com.sun.prism.MediaFrame.getHeight:()I
istore 3
start local 3 3: aload 1
invokeinterface com.sun.prism.MediaFrame.getEncodedWidth:()I
istore 4
start local 4 4: aload 1
invokeinterface com.sun.prism.MediaFrame.getEncodedHeight:()I
istore 5
start local 5 5: aload 1
invokeinterface com.sun.prism.MediaFrame.getPixelFormat:()Lcom/sun/prism/PixelFormat;
astore 6
start local 6 6: aload 6
getstatic com.sun.prism.PixelFormat.MULTI_YCbCr_420:Lcom/sun/prism/PixelFormat;
if_acmpne 27
7: new com.sun.prism.MultiTexture
dup
aload 6
getstatic com.sun.prism.Texture$WrapMode.CLAMP_TO_EDGE:Lcom/sun/prism/Texture$WrapMode;
iload 2
iload 3
invokespecial com.sun.prism.MultiTexture.<init>:(Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$WrapMode;II)V
astore 7
start local 7 8: iconst_0
istore 8
start local 8 9: goto 24
10: StackMap locals: com.sun.prism.d3d.D3DResourceFactory com.sun.prism.MediaFrame int int int int com.sun.prism.PixelFormat com.sun.prism.MultiTexture int
StackMap stack:
iload 4
istore 9
start local 9 11: iload 5
istore 10
start local 10 12: iload 8
iconst_2
if_icmpeq 14
13: iload 8
iconst_1
if_icmpne 16
14: StackMap locals: int int
StackMap stack:
iload 9
iconst_2
idiv
istore 9
15: iload 10
iconst_2
idiv
istore 10
16: StackMap locals:
StackMap stack:
aload 0
getstatic com.sun.prism.PixelFormat.BYTE_ALPHA:Lcom/sun/prism/PixelFormat;
getstatic com.sun.prism.Texture$Usage.DYNAMIC:Lcom/sun/prism/Texture$Usage;
getstatic com.sun.prism.Texture$WrapMode.CLAMP_TO_EDGE:Lcom/sun/prism/Texture$WrapMode;
17: iload 9
iload 10
18: invokevirtual com.sun.prism.d3d.D3DResourceFactory.createTexture:(Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$Usage;Lcom/sun/prism/Texture$WrapMode;II)Lcom/sun/prism/d3d/D3DTexture;
astore 11
start local 11 19: aload 11
ifnonnull 22
20: aload 7
invokevirtual com.sun.prism.MultiTexture.dispose:()V
21: aconst_null
areturn
22: StackMap locals: com.sun.prism.d3d.D3DTexture
StackMap stack:
aload 7
aload 11
iload 8
invokevirtual com.sun.prism.MultiTexture.setTexture:(Lcom/sun/prism/Texture;I)V
end local 11 end local 10 end local 9 23: iinc 8 1
StackMap locals:
StackMap stack:
24: iload 8
aload 1
invokeinterface com.sun.prism.MediaFrame.planeCount:()I
if_icmplt 10
end local 8 25: aload 1
invokeinterface com.sun.prism.MediaFrame.releaseFrame:()V
26: aload 7
areturn
end local 7 27: StackMap locals:
StackMap stack:
getstatic com.sun.prism.d3d.D3DVramPool.instance:Lcom/sun/prism/d3d/D3DVramPool;
astore 7
start local 7 28: aload 7
iload 4
iload 5
aload 6
invokevirtual com.sun.prism.d3d.D3DVramPool.estimateTextureSize:(IILcom/sun/prism/PixelFormat;)J
lstore 8
start local 8 29: aload 7
lload 8
invokevirtual com.sun.prism.d3d.D3DVramPool.prepareForAllocation:(J)Z
ifne 31
30: aconst_null
areturn
31: StackMap locals: com.sun.prism.d3d.D3DVramPool long
StackMap stack:
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.getContextHandle:()J
32: aload 6
invokevirtual com.sun.prism.PixelFormat.ordinal:()I
getstatic com.sun.prism.Texture$Usage.DYNAMIC:Lcom/sun/prism/Texture$Usage;
invokevirtual com.sun.prism.Texture$Usage.ordinal:()I
33: iconst_0
iload 4
iload 5
iconst_0
iconst_0
34: invokestatic com.sun.prism.d3d.D3DResourceFactory.nCreateTexture:(JIIZIIIZ)J
lstore 10
start local 10 35: lconst_0
lload 10
lcmp
ifne 37
36: aconst_null
areturn
37: StackMap locals: long
StackMap stack:
lload 10
invokestatic com.sun.prism.d3d.D3DResourceFactory.nGetTextureWidth:(J)I
istore 12
start local 12 38: lload 10
invokestatic com.sun.prism.d3d.D3DResourceFactory.nGetTextureHeight:(J)I
istore 13
start local 13 39: iload 4
iload 12
if_icmplt 40
iload 5
iload 13
if_icmpge 41
40: StackMap locals: int int
StackMap stack:
getstatic com.sun.prism.Texture$WrapMode.CLAMP_TO_EDGE_SIMULATED:Lcom/sun/prism/Texture$WrapMode;
goto 42
StackMap locals:
StackMap stack:
41: getstatic com.sun.prism.Texture$WrapMode.CLAMP_TO_EDGE:Lcom/sun/prism/Texture$WrapMode;
42: StackMap locals:
StackMap stack: com.sun.prism.Texture$WrapMode
astore 14
start local 14 43: new com.sun.prism.d3d.D3DTexture
dup
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
aload 6
aload 14
lload 10
44: iload 12
iload 13
iload 2
iload 3
iconst_0
45: invokespecial com.sun.prism.d3d.D3DTexture.<init>:(Lcom/sun/prism/d3d/D3DContext;Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$WrapMode;JIIIIZ)V
astore 15
start local 15 46: aload 1
invokeinterface com.sun.prism.MediaFrame.releaseFrame:()V
47: aload 15
areturn
end local 15 end local 14 end local 13 end local 12 end local 10 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 48 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 48 1 frame Lcom/sun/prism/MediaFrame;
2 48 2 width I
3 48 3 height I
4 48 4 texWidth I
5 48 5 texHeight I
6 48 6 texFormat Lcom/sun/prism/PixelFormat;
8 27 7 tex Lcom/sun/prism/MultiTexture;
9 25 8 index I
11 23 9 subWidth I
12 23 10 subHeight I
19 23 11 subTex Lcom/sun/prism/d3d/D3DTexture;
28 48 7 pool Lcom/sun/prism/d3d/D3DVramPool;
29 48 8 size J
35 48 10 pResource J
38 48 12 physWidth I
39 48 13 physHeight I
43 48 14 wrapMode Lcom/sun/prism/Texture$WrapMode;
46 48 15 tex Lcom/sun/prism/d3d/D3DTexture;
MethodParameters:
Name Flags
frame
public int getRTTWidth(int, com.sun.prism.Texture$WrapMode);
descriptor: (ILcom/sun/prism/Texture$WrapMode;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 1 1 w I
0 1 2 wrapMode Lcom/sun/prism/Texture$WrapMode;
MethodParameters:
Name Flags
w
wrapMode
public int getRTTHeight(int, com.sun.prism.Texture$WrapMode);
descriptor: (ILcom/sun/prism/Texture$WrapMode;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 1 1 h I
0 1 2 wrapMode Lcom/sun/prism/Texture$WrapMode;
MethodParameters:
Name Flags
h
wrapMode
public com.sun.prism.d3d.D3DRTTexture createRTTexture(int, int, com.sun.prism.Texture$WrapMode);
descriptor: (IILcom/sun/prism/Texture$WrapMode;)Lcom/sun/prism/d3d/D3DRTTexture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 1
iload 2
aload 3
iconst_0
invokevirtual com.sun.prism.d3d.D3DResourceFactory.createRTTexture:(IILcom/sun/prism/Texture$WrapMode;Z)Lcom/sun/prism/d3d/D3DRTTexture;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 1 1 width I
0 1 2 height I
0 1 3 wrapMode Lcom/sun/prism/Texture$WrapMode;
MethodParameters:
Name Flags
width
height
wrapMode
public com.sun.prism.d3d.D3DRTTexture createRTTexture(int, int, com.sun.prism.Texture$WrapMode, boolean);
descriptor: (IILcom/sun/prism/Texture$WrapMode;Z)Lcom/sun/prism/d3d/D3DRTTexture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=13, locals=18, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic com.sun.prism.impl.PrismSettings.verbose:Z
ifeq 2
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.isLost:()Z
ifeq 2
1: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "RT Texture allocation while the device is lost"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
iload 1
istore 5
start local 5 3: iload 2
istore 6
start local 6 4: iconst_0
istore 7
start local 7 5: iconst_0
istore 8
start local 8 6: getstatic com.sun.prism.impl.PrismSettings.forcePow2:Z
ifeq 9
7: iload 5
ldc 2147483647
invokestatic com.sun.prism.d3d.D3DResourceFactory.nextPowerOfTwo:(II)I
istore 5
8: iload 6
ldc 2147483647
invokestatic com.sun.prism.d3d.D3DResourceFactory.nextPowerOfTwo:(II)I
istore 6
9: StackMap locals: com.sun.prism.d3d.D3DResourceFactory int int com.sun.prism.Texture$WrapMode int int int int int
StackMap stack:
getstatic com.sun.prism.d3d.D3DVramPool.instance:Lcom/sun/prism/d3d/D3DVramPool;
astore 9
start local 9 10: iload 4
ifeq 17
11: invokestatic com.sun.prism.d3d.D3DPipeline.getInstance:()Lcom/sun/prism/d3d/D3DPipeline;
invokevirtual com.sun.prism.d3d.D3DPipeline.getMaxSamples:()I
istore 11
start local 11 12: iload 11
iconst_2
if_icmpge 13
iconst_0
goto 15
StackMap locals: com.sun.prism.d3d.D3DResourceFactory int int com.sun.prism.Texture$WrapMode int int int int int com.sun.prism.d3d.D3DVramPool top int
StackMap stack:
13: iload 11
iconst_4
if_icmpge 14
iconst_2
goto 15
StackMap locals:
StackMap stack:
14: iconst_4
StackMap locals:
StackMap stack: int
15: istore 10
end local 11 start local 10 16: goto 18
end local 10 17: StackMap locals: com.sun.prism.d3d.D3DResourceFactory int int com.sun.prism.Texture$WrapMode int int int int int com.sun.prism.d3d.D3DVramPool
StackMap stack:
iconst_0
istore 10
start local 10 18: StackMap locals: int
StackMap stack:
aload 9
iload 1
iload 2
iconst_0
invokevirtual com.sun.prism.d3d.D3DVramPool.estimateRTTextureSize:(IIZ)J
lstore 11
start local 11 19: aload 9
lload 11
invokevirtual com.sun.prism.d3d.D3DVramPool.prepareForAllocation:(J)Z
ifne 21
20: aconst_null
areturn
21: StackMap locals: long
StackMap stack:
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.getContextHandle:()J
22: getstatic com.sun.prism.PixelFormat.INT_ARGB_PRE:Lcom/sun/prism/PixelFormat;
invokevirtual com.sun.prism.PixelFormat.ordinal:()I
23: getstatic com.sun.prism.Texture$Usage.DEFAULT:Lcom/sun/prism/Texture$Usage;
invokevirtual com.sun.prism.Texture$Usage.ordinal:()I
24: iconst_1
iload 5
iload 6
iload 10
iconst_0
25: invokestatic com.sun.prism.d3d.D3DResourceFactory.nCreateTexture:(JIIZIIIZ)J
lstore 13
start local 13 26: lload 13
lconst_0
lcmp
ifne 28
27: aconst_null
areturn
28: StackMap locals: long
StackMap stack:
lload 13
invokestatic com.sun.prism.d3d.D3DResourceFactory.nGetTextureWidth:(J)I
istore 15
start local 15 29: lload 13
invokestatic com.sun.prism.d3d.D3DResourceFactory.nGetTextureHeight:(J)I
istore 16
start local 16 30: new com.sun.prism.d3d.D3DRTTexture
dup
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
aload 3
lload 13
iload 15
iload 16
31: iload 7
iload 8
iload 1
iload 2
iload 10
32: invokespecial com.sun.prism.d3d.D3DRTTexture.<init>:(Lcom/sun/prism/d3d/D3DContext;Lcom/sun/prism/Texture$WrapMode;JIIIIIII)V
astore 17
start local 17 33: aload 17
invokevirtual com.sun.prism.d3d.D3DRTTexture.createGraphics:()Lcom/sun/prism/Graphics;
invokeinterface com.sun.prism.Graphics.clear:()V
34: aload 17
areturn
end local 17 end local 16 end local 15 end local 13 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 35 1 width I
0 35 2 height I
0 35 3 wrapMode Lcom/sun/prism/Texture$WrapMode;
0 35 4 msaa Z
3 35 5 createw I
4 35 6 createh I
5 35 7 cx I
6 35 8 cy I
10 35 9 pool Lcom/sun/prism/d3d/D3DVramPool;
16 17 10 aaSamples I
18 35 10 aaSamples I
12 16 11 maxSamples I
19 35 11 size J
26 35 13 pResource J
29 35 15 texw I
30 35 16 texh I
33 35 17 rtt Lcom/sun/prism/d3d/D3DRTTexture;
MethodParameters:
Name Flags
width
height
wrapMode
msaa
public com.sun.prism.Presentable createPresentable(com.sun.prism.PresentableState);
descriptor: (Lcom/sun/prism/PresentableState;)Lcom/sun/prism/Presentable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=7, args_size=2
start local 0 start local 1 0: getstatic com.sun.prism.impl.PrismSettings.verbose:Z
ifeq 2
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.isLost:()Z
ifeq 2
1: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "SwapChain allocation while the device is lost"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.getContextHandle:()J
3: aload 1
invokevirtual com.sun.prism.PresentableState.getNativeView:()J
4: getstatic com.sun.prism.impl.PrismSettings.isVsyncEnabled:Z
5: invokestatic com.sun.prism.d3d.D3DResourceFactory.nCreateSwapChain:(JJZ)J
lstore 2
start local 2 6: lload 2
lconst_0
lcmp
ifeq 15
7: aload 1
invokevirtual com.sun.prism.PresentableState.getRenderWidth:()I
istore 4
start local 4 8: aload 1
invokevirtual com.sun.prism.PresentableState.getRenderHeight:()I
istore 5
start local 5 9: aload 0
iload 4
iload 5
getstatic com.sun.prism.Texture$WrapMode.CLAMP_NOT_NEEDED:Lcom/sun/prism/Texture$WrapMode;
aload 1
invokevirtual com.sun.prism.PresentableState.isMSAA:()Z
invokevirtual com.sun.prism.d3d.D3DResourceFactory.createRTTexture:(IILcom/sun/prism/Texture$WrapMode;Z)Lcom/sun/prism/d3d/D3DRTTexture;
astore 6
start local 6 10: getstatic com.sun.prism.impl.PrismSettings.dirtyOptsEnabled:Z
ifeq 12
11: aload 6
invokevirtual com.sun.prism.d3d.D3DRTTexture.contentsUseful:()V
12: StackMap locals: com.sun.prism.d3d.D3DResourceFactory com.sun.prism.PresentableState long int int com.sun.prism.d3d.D3DRTTexture
StackMap stack:
aload 6
ifnull 14
13: new com.sun.prism.d3d.D3DSwapChain
dup
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
lload 2
aload 6
aload 1
invokevirtual com.sun.prism.PresentableState.getRenderScaleX:()F
aload 1
invokevirtual com.sun.prism.PresentableState.getRenderScaleY:()F
invokespecial com.sun.prism.d3d.D3DSwapChain.<init>:(Lcom/sun/prism/d3d/D3DContext;JLcom/sun/prism/d3d/D3DRTTexture;FF)V
areturn
14: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.getContextHandle:()J
lload 2
invokestatic com.sun.prism.d3d.D3DResourceFactory.nReleaseResource:(JJ)I
pop
end local 6 end local 5 end local 4 15: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 16 1 pState Lcom/sun/prism/PresentableState;
6 16 2 pResource J
8 15 4 width I
9 15 5 height I
10 15 6 rtt Lcom/sun/prism/d3d/D3DRTTexture;
MethodParameters:
Name Flags
pState
private static java.nio.ByteBuffer getBuffer(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.RuntimeException
dup
ldc "InputStream must be non-null"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
sipush 4096
istore 1
start local 1 3: iload 1
newarray 8
astore 2
start local 2 4: new java.io.BufferedInputStream
dup
aload 0
iload 1
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
astore 3
start local 3 5: iconst_0
istore 4
start local 4 6: iconst_m1
istore 5
start local 5 7: goto 14
8: StackMap locals: java.io.InputStream int byte[] java.io.BufferedInputStream int int
StackMap stack:
iload 4
iload 5
iadd
istore 4
9: iload 1
iload 4
isub
ifne 14
10: iload 1
iconst_2
imul
istore 1
11: iload 1
newarray 8
astore 6
start local 6 12: aload 2
iconst_0
aload 6
iconst_0
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 6
astore 2
end local 6 14: StackMap locals:
StackMap stack:
aload 3
aload 2
iload 4
iload 1
iload 4
isub
invokevirtual java.io.BufferedInputStream.read:([BII)I
dup
istore 5
iconst_m1
if_icmpne 8
15: aload 3
invokevirtual java.io.BufferedInputStream.close:()V
16: iload 4
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
astore 6
start local 6 17: aload 6
aload 2
iconst_0
iload 4
invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
pop
18: aload 6
19: areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 20: StackMap locals: java.io.InputStream
StackMap stack: java.io.IOException
astore 1
start local 1 21: new java.lang.RuntimeException
dup
ldc "Error loading D3D shader object"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 is Ljava/io/InputStream;
3 20 1 len I
4 20 2 data [B
5 20 3 bis Ljava/io/BufferedInputStream;
6 20 4 offset I
7 20 5 readBytes I
12 14 6 newdata [B
17 20 6 buf Ljava/nio/ByteBuffer;
21 22 1 e Ljava/io/IOException;
Exception table:
from to target type
2 19 20 Class java.io.IOException
MethodParameters:
Name Flags
is
public com.sun.prism.ps.Shader createShader(java.io.InputStream, java.util.Map<java.lang.String, java.lang.Integer>, java.util.Map<java.lang.String, java.lang.Integer>, int, boolean, boolean);
descriptor: (Ljava/io/InputStream;Ljava/util/Map;Ljava/util/Map;IZZ)Lcom/sun/prism/ps/Shader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.getContextHandle:()J
aload 1
invokestatic com.sun.prism.d3d.D3DResourceFactory.getBuffer:(Ljava/io/InputStream;)Ljava/nio/ByteBuffer;
1: iload 4
iload 5
iload 6
2: invokestatic com.sun.prism.d3d.D3DShader.init:(JLjava/nio/ByteBuffer;IZZ)J
lstore 7
start local 7 3: new com.sun.prism.d3d.D3DShader
dup
aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
lload 7
aload 3
invokespecial com.sun.prism.d3d.D3DShader.<init>:(Lcom/sun/prism/d3d/D3DContext;JLjava/util/Map;)V
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 4 1 pixelShaderCode Ljava/io/InputStream;
0 4 2 samplers Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
0 4 3 params Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
0 4 4 maxTexCoordIndex I
0 4 5 isPixcoordUsed Z
0 4 6 isPerVertexColorUsed Z
3 4 7 shaderHandle J
Signature: (Ljava/io/InputStream;Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;IZZ)Lcom/sun/prism/ps/Shader;
MethodParameters:
Name Flags
pixelShaderCode
samplers
params
maxTexCoordIndex
isPixcoordUsed
isPerVertexColorUsed
public com.sun.prism.ps.Shader createStockShader(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/prism/ps/Shader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Shader name must be non-null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokedynamic run(Ljava/lang/String;)Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
com/sun/prism/d3d/D3DResourceFactory.lambda$0(Ljava/lang/String;)Ljava/io/InputStream; (6)
()Ljava/io/InputStream;
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.io.InputStream
astore 2
start local 2 4: new java.lang.StringBuilder
dup
ldc "com.sun.prism.shader."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "_Loader"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 3
start local 3 5: aload 3
ldc "loadShader"
6: iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/sun/prism/ps/ShaderFactory;
aastore
dup
iconst_1
ldc Ljava/io/InputStream;
aastore
7: invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 4
start local 4 8: aload 4
aconst_null
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
aload 2
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.sun.prism.ps.Shader
9: areturn
end local 4 end local 3 end local 2 10: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 11: aload 2
invokevirtual java.lang.Throwable.printStackTrace:()V
12: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Error loading stock shader "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 13 1 name Ljava/lang/String;
4 10 2 stream Ljava/io/InputStream;
5 10 3 klass Ljava/lang/Class;
8 10 4 m Ljava/lang/reflect/Method;
11 13 2 e Ljava/lang/Throwable;
Exception table:
from to target type
2 9 10 Class java.lang.Throwable
MethodParameters:
Name Flags
name final
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "Not supported yet."
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
public boolean isFormatSupported(com.sun.prism.PixelFormat);
descriptor: (Lcom/sun/prism/PixelFormat;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 1 1 format Lcom/sun/prism/PixelFormat;
MethodParameters:
Name Flags
format
private int computeMaxTextureSize();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokevirtual com.sun.prism.d3d.D3DContext.getContextHandle:()J
invokestatic com.sun.prism.d3d.D3DResourceFactory.nGetMaximumTextureSize:(J)I
istore 1
start local 1 1: getstatic com.sun.prism.impl.PrismSettings.verbose:Z
ifeq 3
2: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Maximum supported texture size: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: StackMap locals: int
StackMap stack:
iload 1
getstatic com.sun.prism.impl.PrismSettings.maxTextureSize:I
if_icmple 7
4: getstatic com.sun.prism.impl.PrismSettings.maxTextureSize:I
istore 1
5: getstatic com.sun.prism.impl.PrismSettings.verbose:Z
ifeq 7
6: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Maximum texture size clamped to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
1 8 1 size I
public int getMaximumTextureSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.maxTextureSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
protected void notifyReset();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.records:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.listIterator:()Ljava/util/ListIterator;
astore 1
start local 1 1: goto 6
2: StackMap locals: java.util.ListIterator
StackMap stack:
aload 1
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast com.sun.prism.d3d.D3DResource$D3DRecord
astore 2
start local 2 3: aload 2
invokevirtual com.sun.prism.d3d.D3DResource$D3DRecord.isDefaultPool:()Z
ifeq 6
4: aload 2
invokevirtual com.sun.prism.d3d.D3DResource$D3DRecord.markDisposed:()V
5: aload 1
invokeinterface java.util.ListIterator.remove:()V
end local 2 6: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 2
end local 1 7: aload 0
invokespecial com.sun.prism.impl.ps.BaseShaderFactory.notifyReset:()V
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
1 7 1 it Ljava/util/ListIterator<Lcom/sun/prism/d3d/D3DResource$D3DRecord;>;
3 6 2 r Lcom/sun/prism/d3d/D3DResource$D3DRecord;
protected void notifyReleased();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.records:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.listIterator:()Ljava/util/ListIterator;
astore 1
start local 1 1: goto 4
2: StackMap locals: java.util.ListIterator
StackMap stack:
aload 1
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast com.sun.prism.d3d.D3DResource$D3DRecord
astore 2
start local 2 3: aload 2
invokevirtual com.sun.prism.d3d.D3DResource$D3DRecord.markDisposed:()V
end local 2 4: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 2
end local 1 5: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.records:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.clear:()V
6: aload 0
invokespecial com.sun.prism.impl.ps.BaseShaderFactory.notifyReleased:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
1 5 1 it Ljava/util/ListIterator<Lcom/sun/prism/d3d/D3DResource$D3DRecord;>;
3 4 2 r Lcom/sun/prism/d3d/D3DResource$D3DRecord;
void addRecord(com.sun.prism.d3d.D3DResource$D3DRecord);
descriptor: (Lcom/sun/prism/d3d/D3DResource$D3DRecord;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.records:Ljava/util/LinkedList;
aload 1
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 2 1 record Lcom/sun/prism/d3d/D3DResource$D3DRecord;
MethodParameters:
Name Flags
record
void removeRecord(com.sun.prism.d3d.D3DResource$D3DRecord);
descriptor: (Lcom/sun/prism/d3d/D3DResource$D3DRecord;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.records:Ljava/util/LinkedList;
aload 1
invokevirtual java.util.LinkedList.remove:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 2 1 record Lcom/sun/prism/d3d/D3DResource$D3DRecord;
MethodParameters:
Name Flags
record
public com.sun.prism.PhongMaterial createPhongMaterial();
descriptor: ()Lcom/sun/prism/PhongMaterial;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokestatic com.sun.prism.d3d.D3DPhongMaterial.create:(Lcom/sun/prism/d3d/D3DContext;)Lcom/sun/prism/d3d/D3DPhongMaterial;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
public com.sun.prism.MeshView createMeshView(com.sun.prism.Mesh);
descriptor: (Lcom/sun/prism/Mesh;)Lcom/sun/prism/MeshView;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
aload 1
checkcast com.sun.prism.d3d.D3DMesh
invokestatic com.sun.prism.d3d.D3DMeshView.create:(Lcom/sun/prism/d3d/D3DContext;Lcom/sun/prism/d3d/D3DMesh;)Lcom/sun/prism/d3d/D3DMeshView;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
0 1 1 mesh Lcom/sun/prism/Mesh;
MethodParameters:
Name Flags
mesh
public com.sun.prism.Mesh createMesh();
descriptor: ()Lcom/sun/prism/Mesh;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.d3d.D3DResourceFactory.context:Lcom/sun/prism/d3d/D3DContext;
invokestatic com.sun.prism.d3d.D3DMesh.create:(Lcom/sun/prism/d3d/D3DContext;)Lcom/sun/prism/d3d/D3DMesh;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/prism/d3d/D3DResourceFactory;
static native long nGetContext(int);
descriptor: (I)J
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
adapterOrdinal
static native boolean nIsDefaultPool(long);
descriptor: (J)Z
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pResource
static native int nTestCooperativeLevel(long);
descriptor: (J)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
static native int nResetDevice(long);
descriptor: (J)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
static native long nCreateTexture(long, int, int, boolean, int, int, int, boolean);
descriptor: (JIIZIIIZ)J
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
format
hint
isRTT
width
height
samples
useMipmap
static native long nCreateSwapChain(long, long, boolean);
descriptor: (JJZ)J
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
hwnd
isVsyncEnabled
static native int nReleaseResource(long, long);
descriptor: (JJ)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
resource
static native int nGetMaximumTextureSize(long);
descriptor: (J)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
static native int nGetTextureWidth(long);
descriptor: (J)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pResource
static native int nGetTextureHeight(long);
descriptor: (J)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pResource
static native int nReadPixelsI(long, long, long, java.nio.Buffer, int[], int, int);
descriptor: (JJJLjava/nio/Buffer;[III)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
pResource
length
pixels
arr
contentWidth
contentHeight
static native int nReadPixelsB(long, long, long, java.nio.Buffer, byte[], int, int);
descriptor: (JJJLjava/nio/Buffer;[BII)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
pResource
length
pixels
arr
contentWidth
contentHeight
static native int nUpdateTextureI(long, long, java.nio.IntBuffer, int[], int, int, int, int, int, int, int);
descriptor: (JJLjava/nio/IntBuffer;[IIIIIIII)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
contextHandle
pResource
buf
pixels
dstx
dsty
srcx
srcy
srcw
srch
srcscan
static native int nUpdateTextureF(long, long, java.nio.FloatBuffer, float[], int, int, int, int, int, int, int);
descriptor: (JJLjava/nio/FloatBuffer;[FIIIIIII)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
contextHandle
pResource
buf
pixels
dstx
dsty
srcx
srcy
srcw
srch
srcscan
static native int nUpdateTextureB(long, long, java.nio.ByteBuffer, byte[], int, int, int, int, int, int, int, int);
descriptor: (JJLjava/nio/ByteBuffer;[BIIIIIIII)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
contextHandle
pResource
buf
pixels
formatHint
dstx
dsty
srcx
srcy
srcw
srch
srcscan
static native long nGetDevice(long);
descriptor: (J)J
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pContext
static native long nGetNativeTextureObject(long);
descriptor: (J)J
flags: (0x0108) ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pResource
public com.sun.prism.Texture createTexture(com.sun.prism.PixelFormat, com.sun.prism.Texture$Usage, com.sun.prism.Texture$WrapMode, int, int, boolean);
descriptor: (Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$Usage;Lcom/sun/prism/Texture$WrapMode;IIZ)Lcom/sun/prism/Texture;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=7, locals=7, args_size=7
0: aload 0
aload 1
aload 2
aload 3
iload 4
iload 5
iload 6
invokevirtual com.sun.prism.d3d.D3DResourceFactory.createTexture:(Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$Usage;Lcom/sun/prism/Texture$WrapMode;IIZ)Lcom/sun/prism/d3d/D3DTexture;
areturn
LocalVariableTable:
Start End Slot Name Signature
public com.sun.prism.Texture createTexture(com.sun.prism.PixelFormat, com.sun.prism.Texture$Usage, com.sun.prism.Texture$WrapMode, int, int);
descriptor: (Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$Usage;Lcom/sun/prism/Texture$WrapMode;II)Lcom/sun/prism/Texture;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=6, locals=6, args_size=6
0: aload 0
aload 1
aload 2
aload 3
iload 4
iload 5
invokevirtual com.sun.prism.d3d.D3DResourceFactory.createTexture:(Lcom/sun/prism/PixelFormat;Lcom/sun/prism/Texture$Usage;Lcom/sun/prism/Texture$WrapMode;II)Lcom/sun/prism/d3d/D3DTexture;
areturn
LocalVariableTable:
Start End Slot Name Signature
public com.sun.prism.RTTexture createRTTexture(int, int, com.sun.prism.Texture$WrapMode, boolean);
descriptor: (IILcom/sun/prism/Texture$WrapMode;Z)Lcom/sun/prism/RTTexture;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=5, locals=5, args_size=5
0: aload 0
iload 1
iload 2
aload 3
iload 4
invokevirtual com.sun.prism.d3d.D3DResourceFactory.createRTTexture:(IILcom/sun/prism/Texture$WrapMode;Z)Lcom/sun/prism/d3d/D3DRTTexture;
areturn
LocalVariableTable:
Start End Slot Name Signature
public com.sun.prism.RTTexture createRTTexture(int, int, com.sun.prism.Texture$WrapMode);
descriptor: (IILcom/sun/prism/Texture$WrapMode;)Lcom/sun/prism/RTTexture;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
iload 1
iload 2
aload 3
invokevirtual com.sun.prism.d3d.D3DResourceFactory.createRTTexture:(IILcom/sun/prism/Texture$WrapMode;)Lcom/sun/prism/d3d/D3DRTTexture;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.io.InputStream lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/InputStream;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
0: ldc Lcom/sun/prism/d3d/D3DResourceFactory;
1: new java.lang.StringBuilder
dup
ldc "hlsl/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".obj"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "D3DResourceFactory.java"
InnerClasses:
public final Usage = com.sun.prism.Texture$Usage of com.sun.prism.Texture
public final WrapMode = com.sun.prism.Texture$WrapMode of com.sun.prism.Texture
D3DRecord = com.sun.prism.d3d.D3DResource$D3DRecord of com.sun.prism.d3d.D3DResource
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles