首页 > 解决方案 > 为什么 SurfaceFlinger 在其主函数中注册了 GraphicsAllocatorService 和 DisplayService?

问题描述

这两个服务都有自己的进程,并且已经在自己的进程中注册。

result = hardware::registerPassthroughServiceImplementation<
            android::hardware::graphics::allocator::V2_0::IAllocator>();
sp<IDisplayService> displayservice = new DisplayService();
    status_t err = displayservice->registerAsService();

标签: androidsurfaceflinger

解决方案


推荐阅读