X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Fvisuals%2Fanimated-vector-image%2Fanimated-vector-image-visual.h;h=533fc717b77615e03cd4d294919aa546884ecbfa;hb=7b406456059abec8a9085c02814e3ea526fc525a;hp=0270268fc2d697ce87f9764887d481a16e20b0ef;hpb=9ddd5fea6278d06b8874988498c7c4c6508750ba;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.h b/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.h index 0270268..533fc71 100644 --- a/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.h +++ b/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_ANIMATED_VECTOR_IMAGE_VISUAL_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -93,6 +93,11 @@ public: // from Visual */ void DoCreateInstancePropertyMap(Property::Map& map) const override; + /** + * @copydoc Visual::Base::EnablePreMultipliedAlpha + */ + void EnablePreMultipliedAlpha(bool preMultiplied) override; + protected: // From VectorAnimationManager::LifecycleObserver: /** * @copydoc VectorAnimationManager::LifecycleObserver::VectorAnimationManagerDestroyed() @@ -140,6 +145,16 @@ protected: void OnSetTransform() override; /** + * @copydoc Visual::Base::UpdateShader + */ + void UpdateShader() override; + + /** + * @copydoc Visual::Base::GenerateShader + */ + Shader GenerateShader() const override; + + /** * @copydoc Visual::Base::OnDoAction */ void OnDoAction(const Property::Index actionId, const Property::Value& attributes) override; @@ -153,9 +168,10 @@ private: void DoSetProperty(Property::Index index, const Property::Value& value); /** - * @brief Called when the texture upload is completed. + * @brief Called when the resource is ready. + * @param[in] success True if the texture load was successful. If false, then the resource failed to load. */ - void OnUploadCompleted(); + void OnResourceReady(bool success); /** * @brief Event callback from rasterize thread. This is called after the animation is finished. @@ -225,6 +241,7 @@ private: WeakHandle mPlacementActor; DevelImageVisual::PlayState::Type mPlayState; CallbackBase* mEventCallback; // Not owned + bool mLoadFailed; bool mRendererAdded; bool mCoreShutdown; bool mRedrawInScalingDown;