mPixelArea( FULL_TEXTURE_RECT ),
mPlacementActor(),
mImageUrl( imageUrl ),
- mMaskingData( ),
+ mMaskingData( NULL ),
mDesiredSize( size ),
mTextureId( TextureManager::INVALID_TEXTURE_ID ),
mFittingMode( fittingMode ),
mPixelArea( FULL_TEXTURE_RECT ),
mPlacementActor(),
mImageUrl(),
- mMaskingData( ),
+ mMaskingData( NULL ),
mDesiredSize(),
mTextureId( TextureManager::INVALID_TEXTURE_ID ),
mFittingMode( FittingMode::DEFAULT ),
textureManager.Remove( mMaskingData->mAlphaMaskId );
}
}
+ delete mMaskingData;
}
void ImageVisual::DoSetProperties( const Property::Map& propertyMap )
void ImageVisual::AllocateMaskData()
{
- if( !mMaskingData )
+ if( mMaskingData == NULL )
{
- mMaskingData.reset(new TextureManager::MaskingData());
+ mMaskingData = new TextureManager::MaskingData();
}
}
*/
// EXTERNAL INCLUDES
-#include <memory>
-
#include <dali/public-api/common/intrusive-ptr.h>
#include <dali/public-api/images/image.h>
#include <dali/public-api/images/image-operations.h>
Vector4 mPixelArea;
WeakHandle<Actor> mPlacementActor;
VisualUrl mImageUrl;
- TextureManager::MaskingDataPointer mMaskingData;
+ TextureManager::MaskingData* mMaskingData;
Dali::ImageDimensions mDesiredSize;
TextureManager::TextureId mTextureId;
#include <deque>
#include <functional>
#include <string>
-#include <memory>
#include <dali/public-api/common/dali-vector.h>
#include <dali/public-api/object/ref-object.h>
#include <dali/public-api/rendering/texture-set.h>
float mContentScaleFactor;
bool mCropToMask;
};
- using MaskingDataPointer = std::unique_ptr<MaskingData>;
/**
* Constructor.
TextureSet LoadTexture(VisualUrl& url, Dali::ImageDimensions desiredSize,
Dali::FittingMode::Type fittingMode, Dali::SamplingMode::Type samplingMode,
- const MaskingDataPointer& maskInfo, bool synchronousLoading,
+ MaskingData* maskInfo, bool synchronousLoading,
TextureManager::TextureId& textureId, Vector4& textureRect,
bool& atlasingStatus, bool& loadingStatus, Dali::WrapMode::Type wrapModeU,
Dali::WrapMode::Type wrapModeV, TextureUploadObserver* textureObserver,