[Test] Added tests for CUtil::SplitParams
[xbmc.git] / xbmc / windowing / ios / VideoSyncIos.h
blobb49681f387d157928cc54a0e55dd2ca5bda0464a
1 /*
2 * Copyright (C) 2015-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "guilib/DispResource.h"
12 #include "windowing/VideoSync.h"
14 class CWinSystemIOS;
16 class CVideoSyncIos : public CVideoSync, IDispResource
18 public:
19 CVideoSyncIos(CVideoReferenceClock* clock, CWinSystemIOS& winSystem)
20 : CVideoSync(clock), m_winSystem(winSystem)
24 // CVideoSync interface
25 bool Setup() override;
26 void Run(CEvent& stopEvent) override;
27 void Cleanup() override;
28 float GetFps() override;
30 // IDispResource interface
31 void OnResetDisplay() override;
33 // used in the displaylink callback
34 void IosVblankHandler();
36 private:
37 // CVideoSyncDarwin interface
38 virtual bool InitDisplayLink();
39 virtual void DeinitDisplayLink();
41 int64_t m_LastVBlankTime = 0; //timestamp of the last vblank, used for calculating how many vblanks happened
42 CEvent m_abortEvent;
43 CWinSystemIOS &m_winSystem;