Search in sources :

Example 1 with MipmapControl

use of android.renderscript.Allocation.MipmapControl in project android_frameworks_base by ParanoidAndroid.

the class SceneManager method createFromBitmap.

static Allocation createFromBitmap(Bitmap b, RenderScriptGL rs, boolean isCube) {
    if (b == null) {
        return null;
    }
    MipmapControl mip = MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE;
    int usage = Allocation.USAGE_GRAPHICS_TEXTURE;
    if (isCube) {
        return Allocation.createCubemapFromBitmap(rs, b, mip, usage);
    }
    return Allocation.createFromBitmap(rs, b, mip, usage);
}
Also used : MipmapControl(android.renderscript.Allocation.MipmapControl)

Aggregations

MipmapControl (android.renderscript.Allocation.MipmapControl)1