android: add support for direct rendering