#include <dali/integration-api/debug.h>
// INTERNAL INCLUDES
-#include <ecore-wl-types.h>
+#include <wl-types.h>
#include <trigger-event.h>
#include <gl/egl-implementation.h>
#include <base/display-connection.h>
const std::string& name,
bool isTransparent)
: EcoreWlRenderSurface( positionSize, surface, name, isTransparent ),
- mEglWindow( NULL ),
- mNeedToApproveDeiconify( false )
+ mEglWindow( NULL )
{
DALI_LOG_INFO( gRenderSurfaceLogFilter, Debug::Verbose, "Creating Window\n" );
Init( surface );
return mWlWindow;
}
-void WindowRenderSurface::RequestToApproveDeiconify()
-{
- mNeedToApproveDeiconify = true;
-}
-
void WindowRenderSurface::InitializeEgl( EglInterface& eglIf )
{
DALI_LOG_TRACE_METHOD( gRenderSurfaceLogFilter );
Internal::Adaptor::EglImplementation& eglImpl = static_cast<Internal::Adaptor::EglImplementation&>( egl );
eglImpl.SwapBuffers();
- // When the window is deiconified, it approves the deiconify operation to window manager after rendering
- if(mNeedToApproveDeiconify)
+ if( mRenderNotification )
{
- // SwapBuffer is desychronized. So make sure to sychronize when window is deiconified.
- glAbstraction.Finish();
-
- //FIXME
-
- mNeedToApproveDeiconify = false;
+ mRenderNotification->Trigger();
}
}
{
DALI_ASSERT_ALWAYS(0 && "Failed to create X window");
}
-
- //FIXME
}
void WindowRenderSurface::UseExistingRenderable( unsigned int surfaceId )