Code example for Allocation

Methods: copyTo

0
        mRS.destroy();
        mRS = null;
    } 
 
    public void updateBitmap(Bitmap b) {
        mOutPixelsAllocation.copyTo(b);
    } 
 
    // Override to configure specific benchmark config. 
    public void setupBenchmark() { 
    } 
 
    // Override to reset after benchmark. 
    public void exitBenchmark() { 
    } 
}