【问题标题】:Where is AOSP surfaceflinger initiated?AOSP surfaceflinger 在哪里启动?
【发布时间】:2021-01-19 21:20:07
【问题描述】:

SurfaceFlinger 在 Android 图形渲染中是必不可少的。我研究并发现了一些关于surfaceflinger的代码。这是它的主要内容:https://android.googlesource.com/platform/frameworks/native/+/refs/tags/android-11.0.0_r28/services/surfaceflinger/main_surfaceflinger.cpp

我找不到与在 init.rc 上启动 surfaceflinger 相关的任何内容:https://android.googlesource.com/platform/system/core/+/refs/tags/android-11.0.0_r28/rootdir/init.rc

我在这里找到:https://proandroiddev.com/how-android-boot-up-9864376d911c,surfaceflinger 是由SystemServer 启动的。所以我在这里找到了SystemServer 源代码:https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-11.0.0_r28/services/java/com/android/server/SystemServer.java 但我没有看到提到SurfaceFlinger/surfaceflingerSurface Flinger

Surface Flinger 目录中有一个surfaceflinger.rc 文件,但我找不到任何包含它的文件:https://android.googlesource.com/platform/frameworks/native/+/refs/tags/android-11.0.0_r28/services/surfaceflinger/surfaceflinger.rc

surfaceflinger 服务在 Android 中在哪里启动?

【问题讨论】:

    标签: java android android-source


    【解决方案1】:

    Surface Flinger 目录中有一个 surfaceflinger.rc 文件,但我找不到任何包含它的文件:https://android.googlesource.com/platform/frameworks/native/+/refs/tags/android-11.0.0_r28/services/surfaceflinger/surfaceflinger.rc

    在这里:https://android.googlesource.com/platform/frameworks/native/+/refs/tags/android-11.0.0_r28/services/surfaceflinger/Android.bp#253init_rc:["surfaceflinger.rc"]

    cc_binary {
        name: "surfaceflinger",
        defaults: ["libsurfaceflinger_binary"],
        init_rc: ["surfaceflinger.rc"],
        srcs: [":surfaceflinger_binary_sources"],
        shared_libs: [
            "libsurfaceflinger",
            "libSurfaceFlingerProp",
        ],
    }
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-03-08
    • 1970-01-01
    • 1970-01-01
    • 2021-05-18
    • 1970-01-01
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多