11 #include "rendering/gles/RenderSystemGLES.h" 12 #include "threads/CriticalSection.h" 13 #include "threads/Timer.h" 14 #include "windowing/OSScreenSaver.h" 15 #include "windowing/WinSystem.h" 21 #include <CoreVideo/CVOpenGLESTextureCache.h> 33 static void Register();
34 static std::unique_ptr<CWinSystemBase> CreateWinSystem();
37 virtual void OnTimeout()
override {}
40 size_t GetQueueSize();
41 void AnnounceOnLostDevice();
42 void AnnounceOnResetDevice();
43 void StartLostDeviceTimer();
44 void StopLostDeviceTimer();
45 int GetDisplayIndexFromSettings();
48 bool InitWindowSystem()
override;
49 bool DestroyWindowSystem()
override;
50 bool CreateNewWindow(
const std::string& name,
bool fullScreen,
RESOLUTION_INFO& res)
override;
51 bool DestroyWindow()
override;
52 bool ResizeWindow(
int newWidth,
int newHeight,
int newLeft,
int newTop)
override;
53 bool SetFullScreen(
bool fullScreen,
RESOLUTION_INFO& res,
bool blankOtherDisplays)
override;
54 void UpdateResolutions()
override;
55 bool CanDoWindowed()
override {
return false; }
57 void ShowOSMouse(
bool show)
override {}
58 bool HasCursor()
override;
60 void NotifyAppActiveChange(
bool bActivated)
override;
62 bool Minimize()
override;
63 bool Restore()
override;
65 bool Show(
bool raise =
true)
override;
67 bool IsExtSupported(
const char* extension)
const override;
69 bool BeginRender()
override;
70 bool EndRender()
override;
77 std::vector<std::string> GetConnectedOutputs()
override;
80 void DeinitDisplayLink(
void);
81 void OnAppFocusChange(
bool focus);
82 bool IsBackgrounded()
const {
return m_bIsBackgrounded; }
83 CVEAGLContext GetEAGLContextObj();
86 bool MessagePump()
override;
89 virtual std::unique_ptr<KODI::WINDOWING::IOSScreenSaver> GetOSScreenSaverImpl()
override;
90 void PresentRenderImpl(
bool rendered)
override;
91 void SetVSyncImpl(
bool enable)
override {}
94 void* m_WorkingContext;
95 bool m_bWasFullScreenBeforeMinimize;
97 CCriticalSection m_resourceSection;
98 std::vector<IDispResource*> m_resources;
99 bool m_bIsBackgrounded;
103 bool GetScreenResolution(
int* w,
int* h,
double* fps,
int screenIdx);
104 void FillInVideoModes(
int screenIdx);
105 bool SwitchToVideoMode(
int width,
int height,
double refreshrate);
Definition: WinSystem.h:44
Definition: RenderSystemGLES.h:73
Definition: VideoSyncTVos.h:16
Definition: RenderSystem.h:27
Definition: DispResource.h:14
Provide info of a resolution.
Definition: Resolution.h:66
Definition: XBMC_events.h:109
Definition: WinSystemIOS.mm:63
Definition: WinSystemTVOS.h:27