Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c58bcd9 authored by Alec Mouri's avatar Alec Mouri
Browse files

Remove VrFlinger usages from SF.

VrFlinger won't be used anymore now that we've divested from VR.

Bug: 168152906
Test: builds
Change-Id: I5b74c77005474bd9f6dbce589697472738416d41
parent 8436cbdf
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ cc_defaults {
        "-DEGL_EGLEXT_PROTOTYPES",
    ],
    shared_libs: [
        "android.frameworks.vr.composer@2.0",
        "android.hardware.configstore-utils",
        "android.hardware.configstore@1.0",
        "android.hardware.configstore@1.1",
@@ -58,14 +57,6 @@ cc_defaults {
        "libutils",
        "libSurfaceFlingerProp",
    ],
    // VrComposer is not used when building surfaceflinger for vendors
    target: {
        vendor: {
            exclude_shared_libs: [
                "android.frameworks.vr.composer@2.0",
            ],
        },
    },
    static_libs: [
        "libcompositionengine",
        "libframetimeline",
@@ -73,7 +64,6 @@ cc_defaults {
        "librenderengine",
        "libserviceutils",
        "libtrace_proto",
        "libvrflinger",
    ],
    header_libs: [
        "android.hardware.graphics.composer@2.1-command-buffer",
@@ -195,17 +185,7 @@ cc_defaults {
    ],
    cflags: [
        "-DLOG_TAG=\"SurfaceFlinger\"",
        "-DUSE_VR_COMPOSER=1",
    ],
    // VrComposer is not used when building surfaceflinger for vendors
    // TODO: Is this ever built for vendors?
    target: {
        vendor: {
            cflags: [
                "-DUSE_VR_COMPOSER=0",
            ],
        },
    },
    shared_libs: [
        "android.frameworks.displayservice@1.0",
        "android.hardware.configstore-utils",
+0 −1
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ cc_defaults {
        "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
    ],
    shared_libs: [
        "android.frameworks.vr.composer@2.0",
        "android.hardware.graphics.allocator@2.0",
        "android.hardware.graphics.composer@2.1",
        "android.hardware.graphics.composer@2.2",
+0 −10
Original line number Diff line number Diff line
@@ -130,16 +130,6 @@ struct LayerFECompositionState {
    Rect geomContentCrop;
    Rect geomCrop;

    /*
     * Extra metadata
     */

    // The type for this layer
    int type{0};

    // The appId for this layer
    int appId{0};

    GenericLayerMetadataMap metadata;

    /*
+0 −4
Original line number Diff line number Diff line
@@ -75,10 +75,6 @@ void LayerFECompositionState::dump(std::string& out) const {
    dumpVal(out, "alpha", alpha);
    dumpVal(out, "backgroundBlurRadius", backgroundBlurRadius);

    out.append("\n      ");
    dumpVal(out, "type", type);
    dumpVal(out, "appId", appId);

    if (!metadata.empty()) {
        out.append("\n      metadata {");
        for (const auto& [key, entry] : metadata) {
+0 −7
Original line number Diff line number Diff line
@@ -402,13 +402,6 @@ void OutputLayer::writeOutputIndependentGeometryStateToHWC(
              outputIndependentState.alpha, to_string(error).c_str(), static_cast<int32_t>(error));
    }

    if (auto error = hwcLayer->setInfo(static_cast<uint32_t>(outputIndependentState.type),
                                       static_cast<uint32_t>(outputIndependentState.appId));
        error != hal::Error::NONE) {
        ALOGE("[%s] Failed to set info %s (%d)", getLayerFE().getDebugName(),
              to_string(error).c_str(), static_cast<int32_t>(error));
    }

    for (const auto& [name, entry] : outputIndependentState.metadata) {
        if (auto error = hwcLayer->setLayerGenericMetadata(name, entry.mandatory, entry.value);
            error != hal::Error::NONE) {
Loading