/** * Indicates whether hardware acceleration is available under any form for the view hierarchy. * * @return True if the view hierarchy can potentially be hardware accelerated, false otherwise */ public static boolean isAvailable() { return GLES20Canvas.isAvailable(); }
static HardwareRenderer create(boolean translucent) { if (GLES20Canvas.isAvailable()) { return new Gl20Renderer(translucent); } return null; }