Esempio n. 1
0
  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);
  }
Esempio n. 2
0
  public void onDrawFrame() {
    frametime = System.currentTimeMillis();
    rerender = false;

    mMap.beginFrame();

    draw();

    mMap.doneFrame(rerender);

    mBufferPool.releaseBuffers();
    TextureItem.disposeTextures();
  }