commit | e67fb287bacdb0ba9666d8f773cae4b1d6bcb52c | [log] [tgz] |
---|---|---|
author | Wiwit Rifa'i <wiwitrifai@google.com> | Thu Sep 14 17:14:18 2023 +0800 |
committer | Wiwit Rifa'i <wiwitrifai@google.com> | Mon Sep 18 21:00:09 2023 +0800 |
tree | ca6789e145115acce8d98134acb43fa4d7f198c8 | |
parent | 578af9e67c4bcc533d0d741c7e9d2054cdfb03bb [diff] |
libhwc2.1: avoid finding std::map element twice We should not use std::map::at() after calling std::map::find() for the same key. Otherwise, it would find the same element twice and it's unnecessary. Bug: 295892886 Test: trigger assignResource using hwc-tester & check simpleperf Change-Id: I971965a8b2a84120c989e55b87e223225ea32456