summaryrefslogtreecommitdiff
path: root/libs/ui/Gralloc2.cpp
diff options
context:
space:
mode:
author Chia-I Wu <olv@google.com> 2018-11-05 09:41:30 -0800
committer Chia-I Wu <olv@google.com> 2018-11-05 09:49:57 -0800
commit12ca5279de3e0aa9f4a569856859db09b2862b0d (patch)
treea0d537027fb58901fdc80a7e04ada9ecd159d10f /libs/ui/Gralloc2.cpp
parent6894160b3159973f62d0a73b476d33526258a7a5 (diff)
libui: filter out invalid buffer usage bits
Before fixing callers to omit the invalid bits, we need to make sure HALs do not use those bits. Let's filter the invalid bits out and see if anything breaks. Bug: 72323293 Bug: 72703005 Test: play videos on Pixels Change-Id: I539f9b785f9010b7b7cdc5f72d59391211f337e5
Diffstat (limited to 'libs/ui/Gralloc2.cpp')
-rw-r--r--libs/ui/Gralloc2.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/libs/ui/Gralloc2.cpp b/libs/ui/Gralloc2.cpp
index 37cf617374..20f27c53e3 100644
--- a/libs/ui/Gralloc2.cpp
+++ b/libs/ui/Gralloc2.cpp
@@ -42,9 +42,6 @@ uint64_t getValid10UsageBits() {
for (const auto bit : hardware::hidl_enum_range<BufferUsage>()) {
bits = bits | bit;
}
- // TODO(b/72323293, b/72703005): Remove these additional bits
- bits = bits | (1 << 10) | (1 << 13);
-
return bits;
}();
return valid10UsageBits;