mCallbackManager = CallbackManager::New();
WindowPane defaultWindow = mWindowFrame.front();
+
+ DALI_ASSERT_DEBUG( defaultWindow.surface && "Surface not initialized" );
+
PositionSize size = defaultWindow.surface->GetPositionSize();
mGestureManager = new GestureManager(*this, Vector2(size.width, size.height), mCallbackManager, *mEnvironmentOptions);
mVSyncMonitor = new VSyncMonitor;
- if( defaultWindow.surface )
- {
- mDisplayConnection = Dali::DisplayConnection::New( *mGraphics, defaultWindow.surface->GetSurfaceType() );
- }
- else
- {
- mDisplayConnection = Dali::DisplayConnection::New( *mGraphics );
- }
+ mDisplayConnection = Dali::DisplayConnection::New( *mGraphics, defaultWindow.surface->GetSurfaceType() );
mThreadController = new ThreadController( *this, *mEnvironmentOptions );
mCore( nullptr ),
mThreadController( nullptr ),
mVSyncMonitor( nullptr ),
+ mGraphics( nullptr ),
mDisplayConnection( nullptr ),
+ mWindowFrame(),
mPlatformAbstraction( nullptr ),
mEventHandler( nullptr ),
mCallbackManager( nullptr ),
mThreadSynchronization( NULL ),
mRenderNotification( NULL ),
mRotationTrigger( NULL ),
+ mGraphics( nullptr ),
mColorDepth( isTransparent ? COLOR_DEPTH_32 : COLOR_DEPTH_24 ),
mOutputTransformedSignal(),
mRotationAngle( 0 ),
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
PixmapRenderSurfaceEcoreX::PixmapRenderSurfaceEcoreX( Dali::PositionSize positionSize, Any surface, bool isTransparent )
-: mPosition( positionSize ),
+: mGraphics( nullptr ),
+ mDisplayConnection( nullptr ),
+ mPosition( positionSize ),
mRenderNotification( NULL ),
mColorDepth( isTransparent ? COLOR_DEPTH_32 : COLOR_DEPTH_24 ),
mOwnSurface( false ),
mProduceBufferIndex( INITIAL_PRODUCE_BUFFER_INDEX ),
mConsumeBufferIndex( INITIAL_CONSUME_BUFFER_INDEX ),
- mThreadSynchronization(NULL)
+ mX11Pixmaps(),
+ mEglSurfaces(),
+ mThreadSynchronization( nullptr ),
+ mPixmapCondition()
{
for( int i = 0; i != BUFFER_COUNT; ++i )
{