Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
Return an empty optional in HardwareBuffer::GetSystemUniqueID if the …
Browse files Browse the repository at this point in the history
…underlying NDK API is unavailable
  • Loading branch information
jason-simmons committed Apr 2, 2024
1 parent f086ec4 commit 8d3530e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impeller/toolkit/android/hardware_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ std::optional<uint64_t> HardwareBuffer::GetSystemUniqueID() const {
std::optional<uint64_t> HardwareBuffer::GetSystemUniqueID(
AHardwareBuffer* buffer) {
if (!GetProcTable().AHardwareBuffer_getId) {
return false;
return std::nullopt;
}
uint64_t out_id = 0u;
if (GetProcTable().AHardwareBuffer_getId(buffer, &out_id) != 0) {
Expand Down

0 comments on commit 8d3530e

Please sign in to comment.