commit | 15765fe7d76bb2bc42d6a8eca878da227db10b59 | [log] [tgz] |
---|---|---|
author | Kaiyi Li <[email protected]> | Wed Jan 24 09:16:05 2024 -0800 |
committer | Kaiyi Li <[email protected]> | Wed Jan 24 09:16:05 2024 -0800 |
tree | 9fc819c92ee71b3dae2da401476e26cfdf305b91 | |
parent | a03a78b32c6bdb1f20568d39b603d252c68b6201 [diff] [blame] |
Reformat hwc3 find system/hwc3 -iname *.h -o -iname *.cpp | xargs clang-format -i --style=file Bug: b/319506483 Test: build (cherry picked from https://android-review.googlesource.com/q/commit:48f7b696a93e78b65ad9cc9deb067b061a98f797) Merged-In: I793f39e2e6f7a641c856d2eac2b26f286e286719 Change-Id: I793f39e2e6f7a641c856d2eac2b26f286e286719
diff --git a/system/hwc3/LruCache.h b/system/hwc3/LruCache.h index 9ffca46..f5b8f98 100644 --- a/system/hwc3/LruCache.h +++ b/system/hwc3/LruCache.h
@@ -19,10 +19,8 @@ template <typename Key, typename Value> class LruCache { - public: - LruCache(std::size_t maxSize) : m_maxSize(maxSize) { - m_table.reserve(maxSize); - } + public: + LruCache(std::size_t maxSize) : m_maxSize(maxSize) { m_table.reserve(maxSize); } Value* get(const Key& key) { auto tableIt = m_table.find(key); @@ -70,7 +68,7 @@ m_table.clear(); } - private: + private: struct KeyValue { Key key; Value value;