class com.sun.javafx.sg.prism.RegionImageCache
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.javafx.sg.prism.RegionImageCache
super_class: java.lang.Object
{
private static final int MAX_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 90000
private static final int WIDTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
private static final int HEIGHT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
private java.util.HashMap<java.lang.Integer, com.sun.javafx.sg.prism.RegionImageCache$CachedImage> imageMap;
descriptor: Ljava/util/HashMap;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/HashMap<Ljava/lang/Integer;Lcom/sun/javafx/sg/prism/RegionImageCache$CachedImage;>;
private com.sun.prism.RTTexture backingStore;
descriptor: Lcom/sun/prism/RTTexture;
flags: (0x0002) ACC_PRIVATE
private com.sun.prism.impl.packrect.RectanglePacker hPacker;
descriptor: Lcom/sun/prism/impl/packrect/RectanglePacker;
flags: (0x0002) ACC_PRIVATE
private com.sun.prism.impl.packrect.RectanglePacker vPacker;
descriptor: Lcom/sun/prism/impl/packrect/RectanglePacker;
flags: (0x0002) ACC_PRIVATE
void <init>(com.sun.prism.ResourceFactory);
descriptor: (Lcom/sun/prism/ResourceFactory;)V
flags: (0x0000)
Code:
stack=9, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield com.sun.javafx.sg.prism.RegionImageCache.imageMap:Ljava/util/HashMap;
2: aload 1
getstatic com.sun.prism.Texture$WrapMode.CLAMP_TO_ZERO:Lcom/sun/prism/Texture$WrapMode;
invokeinterface com.sun.prism.ResourceFactory.isWrapModeSupported:(Lcom/sun/prism/Texture$WrapMode;)Z
ifeq 6
3: getstatic com.sun.prism.Texture$WrapMode.CLAMP_TO_ZERO:Lcom/sun/prism/Texture$WrapMode;
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 8
end local 3 end local 2 6: StackMap locals: com.sun.javafx.sg.prism.RegionImageCache com.sun.prism.ResourceFactory
StackMap stack:
getstatic com.sun.prism.Texture$WrapMode.CLAMP_NOT_NEEDED:Lcom/sun/prism/Texture$WrapMode;
astore 2
start local 2 7: iconst_1
istore 3
start local 3 8: StackMap locals: com.sun.prism.Texture$WrapMode int
StackMap stack:
aload 0
aload 1
sipush 2048
sipush 1024
aload 2
invokeinterface com.sun.prism.ResourceFactory.createRTTexture:(IILcom/sun/prism/Texture$WrapMode;)Lcom/sun/prism/RTTexture;
putfield com.sun.javafx.sg.prism.RegionImageCache.backingStore:Lcom/sun/prism/RTTexture;
9: aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.backingStore:Lcom/sun/prism/RTTexture;
invokeinterface com.sun.prism.RTTexture.contentsUseful:()V
10: aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.backingStore:Lcom/sun/prism/RTTexture;
invokeinterface com.sun.prism.RTTexture.makePermanent:()V
11: aload 1
aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.backingStore:Lcom/sun/prism/RTTexture;
invokeinterface com.sun.prism.ResourceFactory.setRegionTexture:(Lcom/sun/prism/Texture;)V
12: aload 0
new com.sun.prism.impl.packrect.RectanglePacker
dup
aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.backingStore:Lcom/sun/prism/RTTexture;
iload 3
iload 3
sipush 1024
iload 3
isub
sipush 1024
iload 3
isub
iconst_0
invokespecial com.sun.prism.impl.packrect.RectanglePacker.<init>:(Lcom/sun/prism/Texture;IIIIZ)V
putfield com.sun.javafx.sg.prism.RegionImageCache.hPacker:Lcom/sun/prism/impl/packrect/RectanglePacker;
13: aload 0
new com.sun.prism.impl.packrect.RectanglePacker
dup
aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.backingStore:Lcom/sun/prism/RTTexture;
sipush 1024
iload 3
sipush 1024
sipush 1024
iload 3
isub
iconst_1
invokespecial com.sun.prism.impl.packrect.RectanglePacker.<init>:(Lcom/sun/prism/Texture;IIIIZ)V
putfield com.sun.javafx.sg.prism.RegionImageCache.vPacker:Lcom/sun/prism/impl/packrect/RectanglePacker;
14: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/javafx/sg/prism/RegionImageCache;
0 15 1 factory Lcom/sun/prism/ResourceFactory;
4 6 2 mode Lcom/sun/prism/Texture$WrapMode;
7 15 2 mode Lcom/sun/prism/Texture$WrapMode;
5 6 3 pad I
8 15 3 pad I
MethodParameters:
Name Flags
factory final
boolean isImageCachable(int, int);
descriptor: (II)Z
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifle 4
iload 1
sipush 1024
if_icmpge 4
1: iload 2
ifle 4
iload 2
sipush 1024
if_icmpge 4
2: iload 1
iload 2
imul
ldc 90000
3: if_icmpge 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/javafx/sg/prism/RegionImageCache;
0 5 1 w I
0 5 2 h I
MethodParameters:
Name Flags
w
h
com.sun.prism.RTTexture getBackingStore();
descriptor: ()Lcom/sun/prism/RTTexture;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.backingStore:Lcom/sun/prism/RTTexture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/javafx/sg/prism/RegionImageCache;
boolean getImageLocation(java.lang.Integer, com.sun.javafx.geom.Rectangle, javafx.scene.layout.Background, com.sun.javafx.geom.Shape, com.sun.prism.Graphics);
descriptor: (Ljava/lang/Integer;Lcom/sun/javafx/geom/Rectangle;Ljavafx/scene/layout/Background;Lcom/sun/javafx/geom/Shape;Lcom/sun/prism/Graphics;)Z
flags: (0x0000)
Code:
stack=7, locals=9, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.imageMap:Ljava/util/HashMap;
aload 1
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.sun.javafx.sg.prism.RegionImageCache$CachedImage
astore 6
start local 6 1: aload 6
ifnull 8
2: aload 6
aload 2
getfield com.sun.javafx.geom.Rectangle.width:I
aload 2
getfield com.sun.javafx.geom.Rectangle.height:I
aload 3
aload 4
invokevirtual com.sun.javafx.sg.prism.RegionImageCache$CachedImage.equals:(IILjavafx/scene/layout/Background;Lcom/sun/javafx/geom/Shape;)Z
ifeq 6
3: aload 2
aload 6
getfield com.sun.javafx.sg.prism.RegionImageCache$CachedImage.x:I
putfield com.sun.javafx.geom.Rectangle.x:I
4: aload 2
aload 6
getfield com.sun.javafx.sg.prism.RegionImageCache$CachedImage.y:I
putfield com.sun.javafx.geom.Rectangle.y:I
5: iconst_0
ireturn
6: StackMap locals: com.sun.javafx.sg.prism.RegionImageCache$CachedImage
StackMap stack:
aload 2
aload 2
iconst_m1
dup_x1
putfield com.sun.javafx.geom.Rectangle.height:I
putfield com.sun.javafx.geom.Rectangle.width:I
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 2
getfield com.sun.javafx.geom.Rectangle.height:I
bipush 64
if_icmple 9
iconst_1
goto 10
StackMap locals:
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 7
start local 7 11: iload 7
ifeq 12
aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.vPacker:Lcom/sun/prism/impl/packrect/RectanglePacker;
goto 13
StackMap locals: int
StackMap stack:
12: aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.hPacker:Lcom/sun/prism/impl/packrect/RectanglePacker;
StackMap locals:
StackMap stack: com.sun.prism.impl.packrect.RectanglePacker
13: astore 8
start local 8 14: aload 8
aload 2
invokevirtual com.sun.prism.impl.packrect.RectanglePacker.add:(Lcom/sun/javafx/geom/Rectangle;)Z
ifne 23
15: aload 5
invokeinterface com.sun.prism.Graphics.sync:()V
16: aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.vPacker:Lcom/sun/prism/impl/packrect/RectanglePacker;
invokevirtual com.sun.prism.impl.packrect.RectanglePacker.clear:()V
17: aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.hPacker:Lcom/sun/prism/impl/packrect/RectanglePacker;
invokevirtual com.sun.prism.impl.packrect.RectanglePacker.clear:()V
18: aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.imageMap:Ljava/util/HashMap;
invokevirtual java.util.HashMap.clear:()V
19: aload 8
aload 2
invokevirtual com.sun.prism.impl.packrect.RectanglePacker.add:(Lcom/sun/javafx/geom/Rectangle;)Z
pop
20: aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.backingStore:Lcom/sun/prism/RTTexture;
invokeinterface com.sun.prism.RTTexture.createGraphics:()Lcom/sun/prism/Graphics;
invokeinterface com.sun.prism.Graphics.clear:()V
21: getstatic com.sun.javafx.logging.PulseLogger.PULSE_LOGGING_ENABLED:Z
ifeq 23
22: ldc "Region image cache flushed"
invokestatic com.sun.javafx.logging.PulseLogger.incrementCounter:(Ljava/lang/String;)V
23: StackMap locals: com.sun.prism.impl.packrect.RectanglePacker
StackMap stack:
aload 0
getfield com.sun.javafx.sg.prism.RegionImageCache.imageMap:Ljava/util/HashMap;
aload 1
new com.sun.javafx.sg.prism.RegionImageCache$CachedImage
dup
aload 2
aload 3
aload 4
invokespecial com.sun.javafx.sg.prism.RegionImageCache$CachedImage.<init>:(Lcom/sun/javafx/geom/Rectangle;Ljavafx/scene/layout/Background;Lcom/sun/javafx/geom/Shape;)V
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
24: iconst_1
ireturn
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 25 0 this Lcom/sun/javafx/sg/prism/RegionImageCache;
0 25 1 key Ljava/lang/Integer;
0 25 2 rect Lcom/sun/javafx/geom/Rectangle;
0 25 3 background Ljavafx/scene/layout/Background;
0 25 4 shape Lcom/sun/javafx/geom/Shape;
0 25 5 g Lcom/sun/prism/Graphics;
1 25 6 cache Lcom/sun/javafx/sg/prism/RegionImageCache$CachedImage;
11 25 7 vertical Z
14 25 8 packer Lcom/sun/prism/impl/packrect/RectanglePacker;
MethodParameters:
Name Flags
key
rect
background
shape
g
}
SourceFile: "RegionImageCache.java"
NestMembers:
com.sun.javafx.sg.prism.RegionImageCache$CachedImage
InnerClasses:
CachedImage = com.sun.javafx.sg.prism.RegionImageCache$CachedImage of com.sun.javafx.sg.prism.RegionImageCache
public final WrapMode = com.sun.prism.Texture$WrapMode of com.sun.prism.Texture