public class com.sun.prism.impl.QueuedPixelSource implements com.sun.prism.PixelSource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.prism.impl.QueuedPixelSource
super_class: java.lang.Object
{
private volatile com.sun.glass.ui.Pixels beingConsumed;
descriptor: Lcom/sun/glass/ui/Pixels;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile com.sun.glass.ui.Pixels enqueued;
descriptor: Lcom/sun/glass/ui/Pixels;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.util.List<java.lang.ref.WeakReference<com.sun.glass.ui.Pixels>> saved;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/ref/WeakReference<Lcom/sun/glass/ui/Pixels;>;>;
private final boolean useDirectBuffers;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.ArrayList
dup
iconst_3
invokespecial java.util.ArrayList.<init>:(I)V
putfield com.sun.prism.impl.QueuedPixelSource.saved:Ljava/util/List;
3: aload 0
iload 1
putfield com.sun.prism.impl.QueuedPixelSource.useDirectBuffers:Z
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/prism/impl/QueuedPixelSource;
0 5 1 useDirectBuffers Z
MethodParameters:
Name Flags
useDirectBuffers
public synchronized com.sun.glass.ui.Pixels getLatestPixels();
descriptor: ()Lcom/sun/glass/ui/Pixels;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.impl.QueuedPixelSource.beingConsumed:Lcom/sun/glass/ui/Pixels;
ifnull 2
1: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "already consuming pixels: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.beingConsumed:Lcom/sun/glass/ui/Pixels;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.enqueued:Lcom/sun/glass/ui/Pixels;
ifnull 5
3: aload 0
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.enqueued:Lcom/sun/glass/ui/Pixels;
putfield com.sun.prism.impl.QueuedPixelSource.beingConsumed:Lcom/sun/glass/ui/Pixels;
4: aload 0
aconst_null
putfield com.sun.prism.impl.QueuedPixelSource.enqueued:Lcom/sun/glass/ui/Pixels;
5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.beingConsumed:Lcom/sun/glass/ui/Pixels;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/prism/impl/QueuedPixelSource;
public synchronized void doneWithPixels(com.sun.glass.ui.Pixels);
descriptor: (Lcom/sun/glass/ui/Pixels;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.prism.impl.QueuedPixelSource.beingConsumed:Lcom/sun/glass/ui/Pixels;
aload 1
if_acmpeq 2
1: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "wrong pixels buffer: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " != "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.beingConsumed:Lcom/sun/glass/ui/Pixels;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.sun.prism.impl.QueuedPixelSource.beingConsumed:Lcom/sun/glass/ui/Pixels;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/prism/impl/QueuedPixelSource;
0 4 1 used Lcom/sun/glass/ui/Pixels;
MethodParameters:
Name Flags
used
public synchronized void skipLatestPixels();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.prism.impl.QueuedPixelSource.beingConsumed:Lcom/sun/glass/ui/Pixels;
ifnull 2
1: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "cannot skip while processing: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.beingConsumed:Lcom/sun/glass/ui/Pixels;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.sun.prism.impl.QueuedPixelSource.enqueued:Lcom/sun/glass/ui/Pixels;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/prism/impl/QueuedPixelSource;
private boolean usesSameBuffer(com.sun.glass.ui.Pixels, com.sun.glass.ui.Pixels);
descriptor: (Lcom/sun/glass/ui/Pixels;Lcom/sun/glass/ui/Pixels;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
if_acmpne 1
iconst_1
ireturn
1: StackMap locals:
StackMap stack:
aload 1
ifnull 2
aload 2
ifnonnull 3
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.sun.glass.ui.Pixels.getPixels:()Ljava/nio/Buffer;
aload 2
invokevirtual com.sun.glass.ui.Pixels.getPixels:()Ljava/nio/Buffer;
if_acmpne 4
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/prism/impl/QueuedPixelSource;
0 5 1 p1 Lcom/sun/glass/ui/Pixels;
0 5 2 p2 Lcom/sun/glass/ui/Pixels;
MethodParameters:
Name Flags
p1
p2
public synchronized com.sun.glass.ui.Pixels getUnusedPixels(int, int, float, float);
descriptor: (IIFF)Lcom/sun/glass/ui/Pixels;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iconst_0
istore 5
start local 5 1: aconst_null
astore 6
start local 6 2: goto 21
3: StackMap locals: int java.nio.IntBuffer
StackMap stack:
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.saved:Ljava/util/List;
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
astore 7
start local 7 4: aload 7
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast com.sun.glass.ui.Pixels
astore 8
start local 8 5: aload 8
ifnonnull 8
6: aload 0
getfield com.sun.prism.impl.QueuedPixelSource.saved:Ljava/util/List;
iload 5
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
7: goto 21
8: StackMap locals: java.lang.ref.WeakReference com.sun.glass.ui.Pixels
StackMap stack:
aload 0
aload 8
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.beingConsumed:Lcom/sun/glass/ui/Pixels;
invokevirtual com.sun.prism.impl.QueuedPixelSource.usesSameBuffer:(Lcom/sun/glass/ui/Pixels;Lcom/sun/glass/ui/Pixels;)Z
ifne 9
aload 0
aload 8
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.enqueued:Lcom/sun/glass/ui/Pixels;
invokevirtual com.sun.prism.impl.QueuedPixelSource.usesSameBuffer:(Lcom/sun/glass/ui/Pixels;Lcom/sun/glass/ui/Pixels;)Z
ifeq 11
9: StackMap locals:
StackMap stack:
iinc 5 1
10: goto 21
11: StackMap locals:
StackMap stack:
aload 8
invokevirtual com.sun.glass.ui.Pixels.getWidthUnsafe:()I
iload 1
if_icmpne 16
12: aload 8
invokevirtual com.sun.glass.ui.Pixels.getHeightUnsafe:()I
iload 2
if_icmpne 16
13: aload 8
invokevirtual com.sun.glass.ui.Pixels.getScaleXUnsafe:()F
fload 3
fcmpl
ifne 16
14: aload 8
invokevirtual com.sun.glass.ui.Pixels.getScaleYUnsafe:()F
fload 4
fcmpl
ifne 16
15: aload 8
areturn
16: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.saved:Ljava/util/List;
iload 5
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
17: aload 8
invokevirtual com.sun.glass.ui.Pixels.getPixels:()Ljava/nio/Buffer;
checkcast java.nio.IntBuffer
astore 6
18: aload 6
invokevirtual java.nio.IntBuffer.capacity:()I
iload 1
iload 2
imul
if_icmplt 20
19: goto 22
20: StackMap locals:
StackMap stack:
aconst_null
astore 6
end local 8 end local 7 21: StackMap locals:
StackMap stack:
iload 5
aload 0
getfield com.sun.prism.impl.QueuedPixelSource.saved:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 3
22: StackMap locals:
StackMap stack:
aload 6
ifnonnull 28
23: iload 1
iload 2
imul
istore 7
start local 7 24: aload 0
getfield com.sun.prism.impl.QueuedPixelSource.useDirectBuffers:Z
ifeq 27
25: iload 7
invokestatic com.sun.prism.impl.BufferUtil.newIntBuffer:(I)Ljava/nio/IntBuffer;
astore 6
26: goto 28
27: StackMap locals: int
StackMap stack:
iload 7
invokestatic java.nio.IntBuffer.allocate:(I)Ljava/nio/IntBuffer;
astore 6
end local 7 28: StackMap locals:
StackMap stack:
invokestatic com.sun.glass.ui.Application.GetApplication:()Lcom/sun/glass/ui/Application;
iload 1
iload 2
aload 6
fload 3
fload 4
invokevirtual com.sun.glass.ui.Application.createPixels:(IILjava/nio/IntBuffer;FF)Lcom/sun/glass/ui/Pixels;
astore 7
start local 7 29: aload 0
getfield com.sun.prism.impl.QueuedPixelSource.saved:Ljava/util/List;
new java.lang.ref.WeakReference
dup
aload 7
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
30: aload 7
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 31 0 this Lcom/sun/prism/impl/QueuedPixelSource;
0 31 1 w I
0 31 2 h I
0 31 3 scalex F
0 31 4 scaley F
1 31 5 i I
2 31 6 reuseBuffer Ljava/nio/IntBuffer;
4 21 7 ref Ljava/lang/ref/WeakReference<Lcom/sun/glass/ui/Pixels;>;
5 21 8 p Lcom/sun/glass/ui/Pixels;
24 28 7 bufsize I
29 31 7 p Lcom/sun/glass/ui/Pixels;
MethodParameters:
Name Flags
w
h
scalex
scaley
public synchronized void enqueuePixels(com.sun.glass.ui.Pixels);
descriptor: (Lcom/sun/glass/ui/Pixels;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.sun.prism.impl.QueuedPixelSource.enqueued:Lcom/sun/glass/ui/Pixels;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/prism/impl/QueuedPixelSource;
0 2 1 pixels Lcom/sun/glass/ui/Pixels;
MethodParameters:
Name Flags
pixels
}
SourceFile: "QueuedPixelSource.java"