Write view mode to Ecore_X_Atom "_E_COMP_3D_APP_WIN" if it exists.
Change-Id: Id30bff408da3d73646f6ac27e9a4871106105936
Signed-off-by: Javon Prince <javon.prince@samsung.com>
void Adaptor::SetViewMode( ViewMode viewMode )
{
void Adaptor::SetViewMode( ViewMode viewMode )
{
+ mSurface->SetViewMode( viewMode );
mCore->SetViewMode( viewMode );
}
mCore->SetViewMode( viewMode );
}
+void RenderSurface::SetViewMode( ViewMode )
+{
+}
+
void RenderSurface::SetDisplay( Any display )
{
// the render surface can be passed either EFL e-core types, or x11 types
void RenderSurface::SetDisplay( Any display )
{
// the render surface can be passed either EFL e-core types, or x11 types
virtual void RenderSync();
/**
virtual void RenderSync();
/**
+ * @copydoc Dali::Internal::Adaptor::RenderSurface::SetViewMode()
+ */
+ void SetViewMode( ViewMode );
+
+ /**
* @copydoc Dali::Internal::Adaptor::RenderSurface::PreRender()
*/
virtual bool PreRender( EglInterface& egl, Integration::GlAbstraction& glAbstraction ) = 0;
* @copydoc Dali::Internal::Adaptor::RenderSurface::PreRender()
*/
virtual bool PreRender( EglInterface& egl, Integration::GlAbstraction& glAbstraction ) = 0;
+void WindowRenderSurface::SetViewMode( ViewMode viewMode )
+{
+ Ecore_X_Atom viewModeAtom( ecore_x_atom_get( "_E_COMP_3D_APP_WIN" ) );
+
+ if( viewModeAtom != None )
+ {
+ unsigned int value( static_cast<unsigned int>( viewMode ) );
+ ecore_x_window_prop_card32_set( mX11Window, viewModeAtom, &value, 1 );
+ }
+}
+
void WindowRenderSurface::CreateXRenderable()
{
// if width or height are zero, go full screen.
void WindowRenderSurface::CreateXRenderable()
{
// if width or height are zero, go full screen.
*/
virtual void PostRender( EglInterface& egl, Integration::GlAbstraction& glAbstraction, unsigned int timeDelta, SyncMode syncMode );
*/
virtual void PostRender( EglInterface& egl, Integration::GlAbstraction& glAbstraction, unsigned int timeDelta, SyncMode syncMode );
+ /**
+ * @copydoc Dali::Internal::Adaptor::RenderSurface::SetViewMode()
+ */
+ void SetViewMode( ViewMode viewMode );
+
// EXTERNAL INCLUDES
#include <dali/public-api/adaptor-framework/common/render-surface.h>
#include <dali/public-api/common/dali-common.h>
// EXTERNAL INCLUDES
#include <dali/public-api/adaptor-framework/common/render-surface.h>
#include <dali/public-api/common/dali-common.h>
+#include <dali/public-api/common/view-mode.h>
virtual void ConsumeEvents() = 0;
/**
virtual void ConsumeEvents() = 0;
/**
+ * Set the stereoscopic 3D view mode
+ * @param[in] viewMode The new view mode
+ */
+ virtual void SetViewMode( ViewMode viewMode ) = 0;
+
+ /**
* Called after offscreen is posted to onscreen
*/
virtual void RenderSync() = 0;
* Called after offscreen is posted to onscreen
*/
virtual void RenderSync() = 0;