EglFactoryInterface* mEglFactory; ///< Factory class to create EGL implementation
EglInterface* mEGL; ///< Interface to EGL implementation
boost::thread* mThread; ///< render thread
- bool mUsingPixmap; ///< whether we're using a pixmap or a window
RenderSurface* mSurface; ///< Current surface
const EnvironmentOptions& mEnvironmentOptions; ///< Environment options
bool mSurfaceReplaced; ///< True when new surface has been initialzed.
mMinimumTapsRequired(request.minTaps),
mMaximumTapsRequired(request.maxTaps),
mTapsRegistered(0),
+ mTouchTime(0),
mTimerSlot( this )
{
mTimer = Dali::Timer::New(MAXIMUM_TIME_ALLOWED);
}
EglSyncImplementation::EglSyncImplementation()
-: mEglImplementation( NULL )
+: mEglImplementation( NULL ),
+ mSyncInitialized( false ),
+ mSyncInitializeFailed( false )
{
}
int mImageWidth;
int mImageHeight;
Pixel::Format mPixelFormat;
-
- // Only used with fallback bitmap buffer implementation
- bool mUpdatingBitmap:1; ///< Whether BitmapImage is being uploaded to graphics memory
- bool mUpdateBitmapAgain:1; ///< Whether to update BitmapImage again after upload complete
};
} // Adaptor
mIndicatorAnimation.FinishedSignal().Connect(this, &Indicator::OnAnimationFinished);
}
- if(mIsShowing && duration != 0)
+ if(mIsShowing && !EqualsZero(duration))
{
// If need to show during showing, do nothing.
// In 2nd phase (below) will update timer
}
- else if(!mIsShowing && mIsAnimationPlaying && duration == 0)
+ else if(!mIsShowing && mIsAnimationPlaying && EqualsZero(duration))
{
// If need to hide during hiding or hidden already, do nothing
}
else
{
- if(duration == 0)
+ if( EqualsZero(duration) )
{
mIndicatorAnimation.MoveTo(mIndicatorImageActor, Vector3(0, -mImageHeight, 0), Dali::AlphaFunctions::EaseOut);
void Orientation::SetAdaptor(Dali::Adaptor& adaptor)
{
- Adaptor::GetImplementation(adaptor).SetRotationObserver(this);
+ Adaptor& adaptorImpl = Adaptor::GetImplementation(adaptor);
+ adaptorImpl.SetRotationObserver(this);
}
int Orientation::GetDegrees() const
if ( Adaptor::IsAvailable() )
{
Dali::Adaptor& adaptor = Dali::Adaptor::Get();
- Adaptor::GetImplementation( adaptor ).DestroyTtsPlayer( Dali::TtsPlayer::SCREEN_READER );
+ Adaptor& adaptorIpml = Adaptor::GetImplementation( adaptor );
+ adaptorIpml.DestroyTtsPlayer( Dali::TtsPlayer::SCREEN_READER );
}
}
}
protected: // Data
XDisplay* mMainDisplay; ///< X-connection for rendering
- Ecore_X_Window mRootWindow; ///< X-Root window
SurfaceType mType; ///< type of renderable
PositionSize mPosition; ///< Position
std::string mTitle; ///< Title of window which shows from "xinfo -topvwins" command
mNextIndicatorOrientation(Dali::Window::PORTRAIT),
mIndicatorOpacityMode(Dali::Window::OPAQUE),
mOverlay(NULL),
- mAdaptor(NULL)
+ mAdaptor(NULL),
+ mEventHandler(NULL),
+ mPreferredOrientation(Dali::Window::PORTRAIT)
{
}
GetFontFamily( pattern, styledFont->first );
GetFontStyle( pattern, styledFont->second );
+ bool releaseMemory = true;
if( *styledFont != previousFont )
{
mPreferredFonts.PushBack( styledFont );
+ releaseMemory = false;
}
if( i == 0u )
{
mDefaultStyledFont = *styledFont;
}
previousFont = *styledFont;
+
+ if( releaseMemory )
+ {
+ delete styledFont;
+ }
}
// Set all fonts to non validated.
for (unsigned int yPos = 0; yPos < height; yPos++)
{
- PixelBuffer *pixelsPtr = pixels;
+ PixelBuffer *pixelsPtr;
if (topDown)
{
// the data in the file is top down, and we store the data top down
const unsigned DECODED_PIXEL_SIZE = 3;
const TJPF DECODED_PIXEL_LIBJPEG_TYPE = TJPF_RGB;
- // Configuration options for JPEG decoder:
-
- const bool FORCEMMX = false; ///< On Intel, use MMX-optimised codepaths.
- const bool FORCESSE = false; ///< On Intel, use SSE1-optimised codepaths.
- const bool FORCESSE2 = false; ///< On Intel, use SSE2-optimised codepaths.
- const bool FORCESSE3 = false; ///< On Intel, use SSE3-optimised codepaths.
- /** Use the fastest chrominance upsampling algorithm available in the underlying codec. */
- const bool FASTUPSAMPLE = false;
-
/** Transformations that can be applied to decoded pixels to respect exif orientation
* codes in image headers */
enum JPGFORM_CODE
bool LoadBitmapFromJpeg( FILE *fp, Bitmap& bitmap, ImageAttributes& attributes, const ResourceLoadingClient& client )
{
- int flags=(FORCEMMX ? TJ_FORCEMMX : 0) |
- (FORCESSE ? TJ_FORCESSE : 0) |
- (FORCESSE2 ? TJ_FORCESSE2 : 0) |
- (FORCESSE3 ? TJ_FORCESSE3 : 0) |
- (FASTUPSAMPLE ? TJ_FASTUPSAMPLE : 0);
+ const int flags= 0;
if( fseek(fp,0,SEEK_END) )
{
// create a new bitmap, and copy in the data
BitmapPtr bitmapData ( Integration::Bitmap::New(Bitmap::BITMAP_2D_PACKED_PIXELS, ResourcePolicy::DISCARD) );
- DALI_ASSERT_ALWAYS( data.length == DISTANCE_FIELD_SIZE * DISTANCE_FIELD_SIZE );
// assign the data
bitmapData->GetPackedPixelsProfile()->AssignBuffer( Pixel::A8, data.data, DISTANCE_FIELD_SIZE * DISTANCE_FIELD_SIZE, DISTANCE_FIELD_SIZE, DISTANCE_FIELD_SIZE );
if( NULL != slpFace )
{
image = GetGlyphBitmap( slpFace->face, character );
+ delete slpFace;
}
return image;
ResourcePointer ResourceModelRequester::LoadResourceSynchronously( const Integration::ResourceType& type, const std::string& path )
{
- DALI_ASSERT_ALWAYS( 0 && "Cannot load models synchronously" );
- return NULL;
+ DALI_ASSERT_ALWAYS( false && "Cannot load models synchronously" );
}
LoadStatus ResourceModelRequester::LoadFurtherResources( ResourceRequest& request, LoadedResource partialResource )
ResourcePointer ResourceShaderRequester::LoadResourceSynchronously( const Integration::ResourceType& type, const std::string& path )
{
- DALI_ASSERT_ALWAYS( 0 && "Cannot load shaders synchronously" );
- return NULL;
+ DALI_ASSERT_ALWAYS( false && "Cannot load shaders synchronously" );
}
Integration::LoadStatus ResourceShaderRequester::LoadFurtherResources( Integration::ResourceRequest& request, LoadedResource partialResource )
ResourcePointer ResourceTextRequester::LoadResourceSynchronously( const Integration::ResourceType& type, const std::string& path )
{
- DALI_ASSERT_ALWAYS( 0 && "Cannot load text synchronously" );
- return NULL;
+ DALI_ASSERT_ALWAYS( false && "Cannot load text synchronously" );
}
LoadStatus ResourceTextRequester::LoadFurtherResources( ResourceRequest& request, LoadedResource partialResource )