5 #include "IAndroidGlDisplayService.h"
7 #include "AndroidSharedGlContextUsageGuard.h"
22 float devicePixelScale,
23 const std::string &imageResolutionSuffix);
26 bool TryBindDisplay();
27 void ReleaseDisplay(
bool destroyEGL);
29 bool IsDisplayAvailable()
const;
30 int GetDisplayWidth()
const;
31 int GetDisplayHeight()
const;
32 EGLDisplay GetDisplay()
const;
33 EGLSurface GetSurface()
const;
34 EGLSurface GetSharedSurface()
const;
35 EGLContext GetContext()
const;
36 EGLContext GetResourceBuildSharedContext()
const;
37 float GetDeviceDpi()
const;
38 float GetDevicePixelScale()
const;
39 std::string GetImageResolutionSuffix()
const;
41 GlDisplayServiceChangedEvent& ChangedEvent()
const {
return *m_changedEvent; }
48 EGLSurface m_sharedSurface;
50 EGLContext m_resourceBuildSharedContext;
55 float m_devicePixelScale;
56 std::string m_imageResolutionSuffix;
58 GlDisplayServiceChangedEvent* m_changedEvent;