public:
void init(const std::shared_ptr<LOTModel> &model);
bool update(size_t frameNo, const VSize &size);
- VSize size() const { return mCompItem->size(); }
+ VSize size() const { return mModel->size(); }
double duration() const { return mModel->duration(); }
double frameRate() const { return mModel->frameRate(); }
size_t totalFrame() const { return mModel->totalFrame(); }
mUpdateViewBox = true;
}
-VSize LOTCompItem::size() const
-{
- return mViewSize;
-}
-
bool LOTCompItem::update(int frameNo)
{
// check if cached frame is same as requested frame.
static std::unique_ptr<LOTLayerItem> createLayerItem(LOTLayerData *layerData);
bool update(int frameNo);
void resize(const VSize &size);
- VSize size() const;
+ VSize size() const { return mViewSize;}
void buildRenderTree();
const LOTLayerNode * renderTree()const;
bool render(const rlottie::Surface &surface);
{
public:
bool isStatic() const {return mRoot->isStatic();}
+ VSize size() const {return mRoot->size();}
double duration() const {return mRoot->duration();}
size_t totalFrame() const {return mRoot->totalFrame();}
size_t frameDuration() const {return mRoot->frameDuration();}