1
0
Fork 0

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:
Drew Davenport 2025-06-09 00:00:00 +00:00
parent 6be6ee958d
commit 19c5d5e973

View file

@ -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