X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Fcontrols%2Fsuper-blur-view%2Fsuper-blur-view-impl.cpp;h=7ea1492e2f705f5538ac9e1d09282930e2e0b4a2;hb=38f0ea9fcdf1dc5037144fa19c8a52316c8af763;hp=6325e62940888537f6011751be28133dbeb382f5;hpb=f1876c34a8f667f79182fa8a772ee889e27290c1;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.cpp b/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.cpp index 6325e62..7ea1492 100644 --- a/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.cpp +++ b/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.cpp @@ -147,12 +147,9 @@ void SuperBlurView::OnInitialize() { Actor self(Self()); - mBlurStrengthPropertyIndex = self.RegisterProperty("blurStrength", 0.f); + mBlurStrengthPropertyIndex = self.RegisterUniqueProperty("blurStrength", 0.f); - DevelControl::SetAccessibilityConstructor(self, [](Dali::Actor actor) { - return std::unique_ptr( - new DevelControl::AccessibleImpl(actor, Dali::Accessibility::Role::FILLER)); - }); + self.SetProperty(DevelControl::Property::ACCESSIBILITY_ROLE, Dali::Accessibility::Role::FILLER); } void SuperBlurView::SetTexture(Texture texture) @@ -307,7 +304,7 @@ void SuperBlurView::OnSceneConnection(int depth) if(i > 0) { Renderer renderer = mRenderers[i]; - Property::Index index = renderer.RegisterProperty(ALPHA_UNIFORM_NAME, 0.f); + Property::Index index = renderer.RegisterUniqueProperty(ALPHA_UNIFORM_NAME, 0.f); Constraint constraint = Constraint::New(renderer, index, ActorOpacityConstraint(mBlurLevels, i - 1)); constraint.AddSource(Source(self, mBlurStrengthPropertyIndex)); constraint.Apply();