+ if( pixelDataSize < width * height )
+ {
+ DALI_LOG_ERROR( "PixelData of an incorrect size when trying to update texture");
+ }
+ else if( ( xOffset + width > ( mWidth / (1<<mipmap) ) ) ||
+ ( yOffset + height > ( mHeight / (1<<mipmap) ) ) )
+ {
+ DALI_LOG_ERROR( "Texture update area out of bounds");
+ }
+ else
+ {
+ //Parameters are correct. Send message to upload data to the texture
+ UploadParams params = { layer, mipmap, xOffset, yOffset, width, height };
+ UploadTextureMessage( mEventThreadServices.GetUpdateManager(), *mRenderObject, pixelData, params );
+ result = true;
+ }