drm_hwcomposer: Reorder some class members
Ensure that the std::lock is declared early so that it can be referenced by clang thread annotations. Change-Id: I64e7290cc6ff6fcdebb119dc2ec7537387f4ae5c
This commit is contained in:
parent
6be6ee958d
commit
19c5d5e973
1 changed files with 5 additions and 5 deletions
|
|
@ -76,6 +76,11 @@ class DrmAtomicStateManager {
|
|||
}
|
||||
|
||||
private:
|
||||
void ThreadFn(const std::shared_ptr<DrmAtomicStateManager> &dasm);
|
||||
std::condition_variable cv_;
|
||||
std::mutex mutex_;
|
||||
bool exit_thread_{};
|
||||
|
||||
DrmAtomicStateManager() = default;
|
||||
auto CommitFrame(AtomicCommitArgs &args) -> int;
|
||||
|
||||
|
|
@ -115,11 +120,6 @@ class DrmAtomicStateManager {
|
|||
int frames_tracked_{};
|
||||
|
||||
DstRectInfo whole_display_rect_{};
|
||||
|
||||
void ThreadFn(const std::shared_ptr<DrmAtomicStateManager> &dasm);
|
||||
std::condition_variable cv_;
|
||||
std::mutex mutex_;
|
||||
bool exit_thread_{};
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue