From f7189cb395a8f7b33cab4e5223fff12695768ede Mon Sep 17 00:00:00 2001 From: maoyue730 Date: Thu, 28 Aug 2025 10:45:52 +0800 Subject: [PATCH] fix problem in frameworks-native-0001.patch --- .../frameworks/native/frameworks-native-0001.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patchForAndroid15/frameworks/native/frameworks-native-0001.patch b/patchForAndroid15/frameworks/native/frameworks-native-0001.patch index 97bf273..136bc51 100644 --- a/patchForAndroid15/frameworks/native/frameworks-native-0001.patch +++ b/patchForAndroid15/frameworks/native/frameworks-native-0001.patch @@ -44,14 +44,14 @@ index 5e7f1510bc..83bae2c75f 100644 if (result != 0) { android_errorWriteLog(0x534e4554, "121035042"); diff --git a/libs/ui/GraphicBufferAllocator.cpp b/libs/ui/GraphicBufferAllocator.cpp -index 1ebe5973fa..2b3ac1c949 100644 +index 1ebe5973fa..375019124c 100644 --- a/libs/ui/GraphicBufferAllocator.cpp +++ b/libs/ui/GraphicBufferAllocator.cpp @@ -143,8 +143,9 @@ auto GraphicBufferAllocator::allocate(const AllocationRequest& request) -> Alloc return result; } // If there's no additional options, fall back to previous allocate version -+ const uint64_t usage = (request.usage & ~static_cast((1 << 10) | (1 << 13))) ++ const uint64_t usage = (request.usage & ~static_cast((1 << 10) | (1 << 13))); result.status = mAllocator->allocate(request.requestorName, request.width, request.height, - request.format, request.layerCount, request.usage, + request.format, request.layerCount, usage, -- Gitee