X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fimages%2Fbuffer-image-impl.cpp;h=c34dede406a3343b26c1e6152d8bf4da432fbb93;hb=659d2cc5b9f73fe057f54a8e1babab0a424fc230;hp=3e2ca4b946a961ef1e198219b467e0e902b9f082;hpb=2c04cc02764bd5530acce05fd0839c1545a2ec69;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/images/buffer-image-impl.cpp b/dali/internal/event/images/buffer-image-impl.cpp index 3e2ca4b..c34dede 100644 --- a/dali/internal/event/images/buffer-image-impl.cpp +++ b/dali/internal/event/images/buffer-image-impl.cpp @@ -65,7 +65,6 @@ BufferImage::BufferImage(unsigned int width, unsigned int height, Pixel::Format : Image(), mInternalBuffer( NULL ), mExternalBuffer( NULL ), - mResourceClient( NULL ), mBufferSize( 0 ), mByteStride( 0 ), mBytesPerPixel( 0 ), @@ -87,7 +86,6 @@ BufferImage::BufferImage(PixelBuffer* pixBuf, : Image(), mInternalBuffer( NULL ), mExternalBuffer( pixBuf ), - mResourceClient( NULL ), mBufferSize( 0 ), mByteStride( 0 ), mBytesPerPixel( 0 ), @@ -108,8 +106,6 @@ void BufferImage::SetupBuffer( unsigned int width, Pixel::Format pixelformat, unsigned int byteStride ) { - ThreadLocalStorage& tls = ThreadLocalStorage::Get(); - mResourceClient = &tls.GetResourceClient(); mWidth = width; mHeight = height; mPixelFormat = pixelformat; @@ -131,7 +127,7 @@ void BufferImage::Update( const RectArea& updateArea ) { if ( !mTexture ) { - mTexture = NewTexture::New( Dali::TextureType::TEXTURE_2D, mPixelFormat, mWidth, mHeight ); + mTexture = Texture::New( Dali::TextureType::TEXTURE_2D, mPixelFormat, mWidth, mHeight ); } DALI_ASSERT_DEBUG( updateArea.x + updateArea.width <= mWidth && updateArea.y + updateArea.height <= mHeight ); UploadArea( updateArea ); @@ -174,6 +170,8 @@ void BufferImage::UploadArea( const RectArea& area ) } PixelDataPtr pixelData = PixelData::New( buffer, bufferSize, mBufferWidth, bufferHeight, mPixelFormat, Dali::PixelData::FREE ); mTexture->Upload( pixelData, 0u, 0u, area.x, area.y, mBufferWidth, bufferHeight ); + + UploadedSignal().Emit( Dali::Image( this ) ); } void BufferImage::UpdateBufferArea( PixelBuffer* src, PixelBuffer* dest, const RectArea& area )