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

Commit 71432b14 authored by Emilian Peev's avatar Emilian Peev Committed by android-build-merger
Browse files

Merge "Camera: Ignore buffer handle 'int' section" into oc-dev

am: a8939b60

Change-Id: I30c3b1b20c7f85079e3e5e6eeb3cd40362955c30
parents a30877ac a8939b60
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -294,9 +294,7 @@ class Camera3Device :

                size_t result = 1;
                result = 31 * result + buf->numFds;
                result = 31 * result + buf->numInts;
                int length = buf->numFds + buf->numInts;
                for (int i = 0; i < length; i++) {
                for (int i = 0; i < buf->numFds; i++) {
                    result = 31 * result + buf->data[i];
                }
                return result;
@@ -305,9 +303,8 @@ class Camera3Device :

        struct BufferComparator {
            bool operator()(const buffer_handle_t& buf1, const buffer_handle_t& buf2) const {
                if (buf1->numFds == buf2->numFds && buf1->numInts == buf2->numInts) {
                    int length = buf1->numFds + buf1->numInts;
                    for (int i = 0; i < length; i++) {
                if (buf1->numFds == buf2->numFds) {
                    for (int i = 0; i < buf1->numFds; i++) {
                        if (buf1->data[i] != buf2->data[i]) {
                            return false;
                        }