MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / cacheImage

Method cacheImage

CodenameOne/src/com/codename1/ui/Image.java:987–990  ·  view source on GitHub ↗
(Dimension size, Image i)

Source from the content-addressed store, hash-verified

985 ///
986 /// cached image
987 void cacheImage(Dimension size, Image i) {
988 Object w = Display.getInstance().createSoftWeakRef(i);
989 getScaleCache().put(size, w);
990 }
991
992 /// Async lock is the equivalent of a lock operation, however it uses the given image as
993 /// the hard cache and performs the actual image loading asynchronously. On completion this

Callers 2

scaledImplMethod · 0.95
scaledMethod · 0.45

Calls 4

getInstanceMethod · 0.95
getScaleCacheMethod · 0.95
putMethod · 0.65
createSoftWeakRefMethod · 0.45

Tested by

no test coverage detected