diff options
author | 2016-10-13 09:45:00 -0700 | |
---|---|---|
committer | 2016-10-17 11:32:10 -0700 | |
commit | 6db42ac36e69ab203e9078e9f70c2ff762af87cd (patch) | |
tree | 1fb15be4cf09b47d00cfa157b2899608e97342c8 /libs/gui/ConsumerBase.cpp | |
parent | 5736f7dc1535452799ef2ea2026b7d1465567a31 (diff) |
libui: Change hasSignaled to return optional<bool>
Since the android::Fence::wait() call can possibly return an error,
we need some way of indicating to the caller of hasSignaled that a
fence that has not yet signaled (because it is in an error state) will
never signal. To do this, we return an optional<bool>, where true and
false indicate both that the fence is valid and that it has or hasn't
signaled. If an error is returned from wait(), we return a default
optional value (that is neither true nor false).
Test: m
Change-Id: Ibce48cd2e71ddb8ccf6cabe3284afe0efca8c132
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions