public void clear() { for (TextureItem t = mTexture; t != null; t = t.dispose()) ; mAtlas.clear(); items = null; // mTexture.bitmap.eraseColor(Color.TRANSPARENT); mTexture = pool.get(); mCanvas.setBitmap(mTexture.bitmap); }
public void onDrawFrame() { frametime = System.currentTimeMillis(); rerender = false; mMap.beginFrame(); draw(); mMap.doneFrame(rerender); mBufferPool.releaseBuffers(); TextureItem.disposeTextures(); }