FileDocCategorySizeDatePackage
GLES20RecordingCanvas.javaAPI DocAndroid 5.1 API2188Thu Mar 12 22:22:10 GMT 2015android.view

GLES20RecordingCanvas

public class GLES20RecordingCanvas extends GLES20Canvas
An implementation of a GL canvas that records drawing operations. This is intended for use with a DisplayList. This class keeps a list of all the Paint and Bitmap objects that it draws, preventing the backing memory of Bitmaps from being freed while the DisplayList is still holding a native reference to the memory.

Fields Summary
private static final int
POOL_LIMIT
private static final android.util.Pools.SynchronizedPool
sPool
RenderNode
mNode
Constructors Summary
private GLES20RecordingCanvas()


      
        super();
    
Methods Summary
longfinishRecording()

        return nFinishRecording(mRenderer);
    
public booleanisRecordingFor(java.lang.Object o)

        return o == mNode;
    
static android.view.GLES20RecordingCanvasobtain(RenderNode node)

        if (node == null) throw new IllegalArgumentException("node cannot be null");
        GLES20RecordingCanvas canvas = sPool.acquire();
        if (canvas == null) {
            canvas = new GLES20RecordingCanvas();
        }
        canvas.mNode = node;
        return canvas;
    
voidrecycle()

        mNode = null;
        sPool.release(this);