Dali::Adaptor* Adaptor::New( Any nativeWindow, RenderSurface *surface, Dali::Configuration::ContextLoss configuration, EnvironmentOptions* environmentOptions ) { Dali::Adaptor* adaptor = new Dali::Adaptor; Adaptor* impl = new Adaptor( nativeWindow, *adaptor, surface, environmentOptions ); adaptor->mImpl = impl; impl->Initialize(configuration); return adaptor; }
Dali::Adaptor* Adaptor::New( RenderSurface *surface, const DeviceLayout& baseLayout ) { DALI_ASSERT_ALWAYS( surface->GetType() != Dali::RenderSurface::NO_SURFACE && "No surface for adaptor" ); Dali::Adaptor* adaptor = new Dali::Adaptor; Adaptor* impl = new Adaptor( *adaptor, surface, baseLayout ); adaptor->mImpl = impl; impl->Initialize(); return adaptor; }