// EXTERNAL INCLUDES
#include <dali/integration-api/debug.h>
+#include <dali/integration-api/graphics/graphics.h>
// INTERNAL INCLUDES
#include <dali/internal/adaptor/common/adaptor-internal-services.h>
: mGLES( adaptorInterfaces.GetGlesInterface() ),
mEglFactory( &adaptorInterfaces.GetEGLFactoryInterface()),
mEGL( NULL ),
+ mGraphics( adaptorInterfaces.GetGraphics() ),
mSurfaceReplaced( false ),
mSurfaceResized( false )
{
delete mDisplayConnection;
mDisplayConnection = NULL;
}
-
+#if 0
mEglFactory->Destroy();
+#endif
}
void RenderHelper::Start()
{
+#if 0
if( mSurface )
{
mSurface->StartRender();
}
+#endif
}
void RenderHelper::Stop()
{
+#if 0
if( mSurface )
{
// Tell surface we have stopped rendering
mSurface->StopRender();
}
+#endif
}
void RenderHelper::ConsumeEvents()
void RenderHelper::InitializeEgl()
{
+#if 0
mEGL = mEglFactory->Create();
DALI_ASSERT_ALWAYS( mSurface && "NULL surface" );
// Make it current
mEGL->MakeContextCurrent();
+#endif
}
void RenderHelper::ReplaceSurface( RenderSurface* newSurface )
{
+#if 0
mSurface->DestroyEglSurface(*mEGL);
// This is designed for replacing pixmap surfaces, but should work for window as well
// use the new surface from now on
mSurface = newSurface;
mSurfaceReplaced = true;
+#endif
}
void RenderHelper::ResizeSurface()
void RenderHelper::ShutdownEgl()
{
+#if 0
if( mSurface )
{
// give a chance to destroy the OpenGL surface that created externally
// delete the GL context / egl surface
mEGL->TerminateGles();
+#endif
}
bool RenderHelper::PreRender()
{
+ mGraphics.PreRender( 1 );
+#if 0
if( mSurface )
{
mSurface->PreRender( *mEGL, mGLES, mSurfaceResized );
}
mGLES.PreRender();
+#endif
return true;
}
void RenderHelper::PostRender( bool renderToFbo )
{
+ mGraphics.PostRender( 1 );
+#if 0
// Inform the gl implementation that rendering has finished before informing the surface
mGLES.PostRender();
}
mSurfaceReplaced = false;
mSurfaceResized = false;
+#endif
}
} // namespace Adaptor