/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
dummyControl.SetResizePolicy(ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS);
application.GetScene().Add(dummyControl);
+ Property::Map attributes;
+ DevelControl::DoAction(dummyControl, DummyControl::Property::TEST_VISUAL, Dali::Toolkit::DevelAnimatedImageVisual::Action::STOP, attributes);
+
application.SendNotification();
application.Render();
application.SendNotification();
application.Render(20);
- DALI_TEST_EQUALS(gl.GetLastGenTextureId(), 3, TEST_LOCATION);
+ DALI_TEST_EQUALS(gl.GetNumGeneratedTextures(), 3, TEST_LOCATION);
dummyControl.Unparent();
}
dummyImpl1.UnregisterVisual(DummyControl::Property::TEST_VISUAL);
dummyControl.Unparent();
+ // Ensure to remove cached texture. (Since we support lazy cache removal)
+ application.SendNotification();
+ application.Render(16);
+ application.SendNotification();
+ application.Render(16);
+
// Batch size is 9 and cache size is 4
propertyMap.Clear();
propertyMap.Insert(Visual::Property::TYPE, Visual::IMAGE);
}
END_TEST;
-}
\ No newline at end of file
+}