summaryrefslogblamecommitdiffstats
path: root/src/core/hle/service/vi/vsync_manager.h
blob: 5d45bb5eec00bc290c3febc365897bb26b74f8a3 (plain) (tree)




























                                                               
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <set>

namespace Service {
class Event;
}

namespace Service::VI {

class DisplayList;

class VsyncManager {
public:
    explicit VsyncManager();
    ~VsyncManager();

    void SignalVsync();
    void LinkVsyncEvent(Event* event);
    void UnlinkVsyncEvent(Event* event);

private:
    std::set<Event*> m_vsync_events;
};

} // namespace Service::VI