Any GetNativeWindowHandle();
/**
+ * @brief Get the native display associated with the graphics backend
+ *
+ * @return A handle to the native display
+ */
+ Any GetGraphicsDisplay();
+
+ /**
* @brief Release any locks the surface may hold.
*
* For example, after compositing an offscreen surface, use this method to allow
// EXTERNAL INCLUDES
#include <dali/public-api/common/stage.h>
#include <dali/public-api/actors/layer.h>
+#include <dali/public-api/object/any.h>
#include <dali/devel-api/actors/actor-devel.h>
#include <dali/integration-api/debug.h>
#include <dali/integration-api/core.h>
return mNativeWindow;
}
+Any Adaptor::GetGraphicsDisplay()
+{
+ Any display;
+
+ if( mEglFactory )
+ {
+ EglInterface* egl = mEglFactory->GetImplementation();
+ if( egl )
+ {
+ auto eglImpl = static_cast<EglImplementation*>(egl);
+ display = eglImpl->GetDisplay();
+ }
+ }
+ return display;
+}
+
void Adaptor::SetUseRemoteSurface(bool useRemoteSurface)
{
mUseRemoteSurface = useRemoteSurface;
Any GetNativeWindowHandle();
/**
+ * Get the native display associated with the graphics backend
+ *
+ * @return A handle to the native display
+ */
+ Any GetGraphicsDisplay();
+
+ /**
* Sets use remote surface for eglSurface output
* @param[in] useRemoteSurface True if the remote surface is used
*/
return mImpl->GetNativeWindowHandle();
}
+Any Adaptor::GetGraphicsDisplay()
+{
+ return mImpl->GetGraphicsDisplay();
+}
+
void Adaptor::ReleaseSurfaceLock()
{
mImpl->ReleaseSurfaceLock();