summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2021-03-05 01:57:08 +0000
committer Siarhei Vishniakou <svv@google.com> 2021-03-05 02:29:16 +0000
commit38b7f7faaede3ad09c55d933e94d28366e2a1cdd (patch)
treed637bd5c5ed1d8f6e664de08863e23e14f1739bc /vulkan/libvulkan/api.cpp
parenta170ec6a87f2720eb9846ea75cd9807db54b12ad (diff)
Use bool directly in InputMessage
In order to send the data via socket, we use the InputMessage struct. In this struct, various fields are stored. This struct's purpose is to serialize the input event information. We are storing bools in InputMessage as various integer types. To read these bools, we compare the integers to 1. It's not very convenient. To simplify this, let's store bools directly in InputMessage. Bool size is implementation-dependent, but it's typically 1, so we can just guard against that with a static_assert. Bug: 169866723 Test: presubmit Change-Id: Iae4870fac95e884cc328791c0035df6e31e34a7b
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions