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

Commit d6cbaae6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "libgralloctypes: support encoding and decoding"

parents 08e244f9 4858652a
Loading
Loading
Loading
Loading
+54 −0
Original line number Diff line number Diff line
// Copyright (C) 2019 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

cc_library {
    name: "libgralloctypes",
    defaults: ["libbinder_ndk_host_user"],
    cflags: [
        "-Wall",
        "-Werror",
        "-Wno-enum-compare",
    ],
    host_supported: true,

    vendor_available: true,
    vndk: {
        enabled: true,
        support_system_process: true,
    },

    srcs: [
        "Gralloc4.cpp"
    ],

    shared_libs: [
        "android.hardware.graphics.mapper@4.0",
        "libhidlbase",
        "liblog",
        "vintf-graphics-common-ndk_platform",
    ],

    export_shared_lib_headers: [
        "android.hardware.graphics.mapper@4.0",
        "vintf-graphics-common-ndk_platform",
    ],

    export_include_dirs: [
        "include",
    ],

    sanitize: {
        misc_undefined: ["integer"],
    },
}
+637 −0

File added.

Preview size limit exceeded, changes collapsed.

+279 −0

File added.

Preview size limit exceeded, changes collapsed.

+4 −0
Original line number Diff line number Diff line
@@ -97,6 +97,10 @@ cc_defaults {
        "android.hardware.power@1.3",
        "libhidlbase",
    ],
    // TODO (marissaw): this library is not used by surfaceflinger. This is here so
    // the library compiled in a way that is accessible to system partition when running
    // IMapper's VTS.
    required: ["libgralloctypes"]
}

cc_defaults {