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

Commit a694b466 authored by Steven Moreland's avatar Steven Moreland
Browse files

gralloctypes operator== in android namespace.

These being global interacts badly with operators defined in the android
namespace external to classes. This is because once operator== functions
in the android namespace are found, operator== functions in the global
namespace won't be considered.

Bug: 147842528
Test: compiles when 'android' namespace operators are introduced
upstream.

Change-Id: I54f3098103cb3623df80c54343fbc44ddab6a33a
parent 2bcf8211
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@
#include <aidl/android/hardware/graphics/common/XyColor.h>
#include <android/hardware/graphics/mapper/4.0/IMapper.h>

namespace android {

/**
 * Define equality operators for Stable AIDL types.
 */
@@ -210,8 +212,6 @@ inline bool operator!=(const aidl::android::hardware::graphics::common::Cta861_3
    return !(lhs == rhs);
}

namespace android {

namespace gralloc4 {

#define GRALLOC4_STANDARD_METADATA_TYPE "android.hardware.graphics.common.StandardMetadataType"