Remove direct rendering calls. The API is removed from upstream.