#ifdef VE_USE_GL_MULTI_CONTEXT
__pGlContext = (_GlContext*)pLayer->GetContext();
__pGlContext->MakeCurrent();
- __needClear = true;
#else
- __pGlContext->MakeCurrent(pLayer->GetNativeSurface());
-
-// VisualElementSurface* pSurface = pView->GetRenderTarget();
-// if(pSurface)
-// {
-// _VisualElementSurfaceImpl* pSurfaceImpl = _VisualElementSurfaceImpl::GetInstance(*pSurface);
-// __pGlContext->MakeCurrent(pSurfaceImpl->GetNativeHandle());
-// __needClear = true;
-// }
+
+ VisualElementSurface* pSurface = pView->GetRenderTarget();
+ if(pSurface)
+ {
+ // TODO: Should be implement Offline rendering ....
+ _VisualElementSurfaceImpl* pSurfaceImpl = _VisualElementSurfaceImpl::GetInstance(*pSurface);
+ __pGlContext->MakeCurrent(pSurfaceImpl->GetNativeHandle());
+ __needClear = true;
+ }
+ else
+ {
+ __pGlContext->MakeCurrent(pLayer->GetNativeSurface());
+
+ }
#endif
+
Tizen::Graphics::FloatRectangle* pViewport = pView->GetViewport();
if(pViewport)
{
bool isUpdated = false;
isUpdated = pLayer->UpdateNativeNodes();
+
+ __needClear = true;
// if (isUpdated)
{
-
- Tizen::Base::Collection::ArrayList clearColorArray;
-
- clearColorArray.Construct();
-
int count = pLayer->GetSceneCount();
- for ( int i = 0 ; i<count ; i++)
+ for ( int i = 0 ; i<count ; i++ )
{
SceneVisualElement* pScene = pLayer->GetScene(i);
_RootVisualElement* pRoot = _SceneVisualElementImpl::GetInstance(*pScene);
_View* pView = pRoot->GetView();
- if(pView)
+ if (pView)
{
CompositeView(pLayer, pRoot, pView);
// Todo: render sub view
int count = pView->GetSubViewCount();
- for(int i = 0 ;i <count; i++)
+ for ( int i = 0 ;i <count; i++ )
{
_View* pSubView = pView->GetSubView(i);
if(pSubView)
}
}
}
+#ifdef VE_USE_GL_MULTI_CONTEXT
+ __pGlContext->MakeCurrent();
+#else
+ __pGlContext->MakeCurrent(pLayer->GetNativeSurface());
+#endif
__pGlContext->SwapBuffers();
}
}
// bool bImplicitAnimation = GET_IMPLICIT_FLAGS(UPDATED_PROP_SHOW_STATE);
- if (unlikely(pAnimationManager->IsImplicitAnimationEnabled() && __isImplicitAnimationEnabled))
+ if (likely(GetRoot())
+ && likely(GetSharedData().needSurface)
+ && unlikely(pAnimationManager->IsImplicitAnimationEnabled() && __isImplicitAnimationEnabled))
{
// WARNING:
// For performance, following must be done only when oldValue != newValue.