From a0031834b728e9f87f39be2e191f145b7b98fa86 Mon Sep 17 00:00:00 2001 From: Agnelo Vaz Date: Wed, 18 Oct 2017 13:34:53 +0100 Subject: [PATCH 1/1] ImageVisual Set default to ReleasePolicy::Destroyed Change-Id: If7aac9c786cd852136e14e31653fddd62652204f --- dali-toolkit/devel-api/visuals/image-visual-properties-devel.h | 2 +- dali-toolkit/internal/visuals/image/image-visual.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dali-toolkit/devel-api/visuals/image-visual-properties-devel.h b/dali-toolkit/devel-api/visuals/image-visual-properties-devel.h index e812c5b..d0c9379 100644 --- a/dali-toolkit/devel-api/visuals/image-visual-properties-devel.h +++ b/dali-toolkit/devel-api/visuals/image-visual-properties-devel.h @@ -77,7 +77,7 @@ enum Type /** * @brief The policy to determine when an image should no longer be cached. * @details Name "releasePolicy", Type ReleasePolicy::Type (Property::INTEGER) or Property::STRING - * @note Default ReleasePolicy::DETACHED + * @note Default ReleasePolicy::DESTROYED * @see ReleasePolicy::Type */ RELEASE_POLICY = CROP_TO_MASK + 2, diff --git a/dali-toolkit/internal/visuals/image/image-visual.cpp b/dali-toolkit/internal/visuals/image/image-visual.cpp index 4d30053..82f7fd1 100644 --- a/dali-toolkit/internal/visuals/image/image-visual.cpp +++ b/dali-toolkit/internal/visuals/image/image-visual.cpp @@ -293,7 +293,7 @@ ImageVisual::ImageVisual( VisualFactoryCache& factoryCache, const Image& image ) mSamplingMode( SamplingMode::DEFAULT ), mWrapModeU( WrapMode::DEFAULT ), mWrapModeV( WrapMode::DEFAULT ), - mReleasePolicy( DevelImageVisual::ReleasePolicy::DETACHED ), + mReleasePolicy( DevelImageVisual::ReleasePolicy::DESTROYED ), mAttemptAtlasing( false ), mLoading( false ) { -- 2.7.4