Lines Matching full:bitmap
22 import android.graphics.Bitmap;
36 private final Bitmap.Config mBitmapConfig;
37 private Bitmap mBitmap = null;
42 public CanvasTexture(Bitmap.Config bitmapConfig) {
94 Bitmap bitmap = mBitmap;
104 // Reallocate the bitmap only if the padded size has changed.
132 // Recycle the existing bitmap and create a new one.
133 if (bitmap != null)
134 bitmap.recycle();
136 bitmap = Bitmap.createBitmap(textureWidth, textureHeight, mBitmapConfig);
137 canvas.setBitmap(bitmap);
138 mBitmap = bitmap;
152 renderCanvas(canvas, bitmap, width, height);
155 GLUtils.texImage2D(GL11.GL_TEXTURE_2D, 0, bitmap, 0);
196 protected abstract void renderCanvas(Canvas canvas, Bitmap backing, int width, int height);