Ejemplo n.º 1
0
 @Override
 protected void destroy() {
   super.destroy();
   if (AndroidGraphicFactory.DEBUG_BITMAPS) {
     int i = tileInstances.decrementAndGet();
     LOGGER.log(Level.INFO, "TILEBITMAP COUNT " + Integer.toString(i));
   }
 }
Ejemplo n.º 2
0
 AndroidTileBitmap(int tileSize, boolean isTransparent) {
   super();
   if (AndroidUtil.HONEYCOMB_PLUS) {
     this.bitmap = getTileBitmapFromReusableSet(tileSize, isTransparent);
   }
   if (this.bitmap == null) {
     android.graphics.Bitmap.Config config =
         isTransparent
             ? AndroidGraphicFactory.TRANSPARENT_BITMAP
             : AndroidGraphicFactory.NON_TRANSPARENT_BITMAP;
     this.bitmap = AndroidBitmap.createAndroidBitmap(tileSize, tileSize, config);
   }
   if (AndroidGraphicFactory.DEBUG_BITMAPS) {
     tileInstances.incrementAndGet();
   }
 }