Lines Matching refs:bitmap
125 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { in getTile() argument
134 if (bitmap == null) { in getTile()
135 bitmap = Bitmap.createBitmap(tileSize, tileSize, Bitmap.Config.ARGB_8888); in getTile()
139 mOptions.inBitmap = bitmap; in getTile()
142 bitmap = mDecoder.decodeRegion(mWantRegion, mOptions); in getTile()
144 if (mOptions.inBitmap != bitmap && mOptions.inBitmap != null) { in getTile()
149 if (bitmap == null) { in getTile()
152 return bitmap; in getTile()
164 Bitmap bitmap = mDecoder.decodeRegion(mOverlapRegion, mOptions); in getTileWithoutReusingBitmap() local
166 if (bitmap == null) { in getTileWithoutReusingBitmap()
171 return bitmap; in getTileWithoutReusingBitmap()
179 mCanvas.drawBitmap(bitmap, in getTileWithoutReusingBitmap()
210 private static Bitmap ensureGLCompatibleBitmap(Bitmap bitmap) { in ensureGLCompatibleBitmap() argument
211 if (bitmap == null || bitmap.getConfig() != null) { in ensureGLCompatibleBitmap()
212 return bitmap; in ensureGLCompatibleBitmap()
214 Bitmap newBitmap = bitmap.copy(Config.ARGB_8888, false); in ensureGLCompatibleBitmap()
215 bitmap.recycle(); in ensureGLCompatibleBitmap()