[problem] A lot of error messages shown with images & model related to type-registry which
can slow startup time due to a lot of error logging
[cause] Image types not registering with type-registry
[solution] Register with type-registry
Change-Id: Id38bf29974e672a00171ec803707ff23c1610d5a
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
#include <dali/internal/event/images/bitmap-image-impl.h>
// INTERNAL INCLUDES
+#include <dali/public-api/object/type-registry.h>
#include <dali/integration-api/bitmap.h>
#include <dali/internal/event/images/bitmap-external.h>
#include <dali/internal/event/common/thread-local-storage.h>
namespace Internal
{
+namespace
+{
+TypeRegistration mType( typeid( Dali::BitmapImage ), typeid( Dali::Image ), NULL );
+} // unnamed namespace
+
BitmapImagePtr BitmapImage::New( unsigned int width, unsigned int height, Pixel::Format pixelformat, LoadPolicy loadPol, ReleasePolicy releasePol )
{
BitmapImagePtr internal = new BitmapImage( width, height, pixelformat, loadPol, releasePol );
#include <dali/internal/event/images/encoded-buffer-image-impl.h>
// INTERNAL INCLUDES
+#include <dali/public-api/object/type-registry.h>
#include <dali/internal/event/common/thread-local-storage.h>
#include <dali/internal/event/resources/resource-client.h>
#include <dali/integration-api/platform-abstraction.h>
namespace Internal
{
+namespace
+{
+TypeRegistration mType( typeid( Dali::EncodedBufferImage ), typeid( Dali::Image ), NULL );
+} // unnamed namespace
+
EncodedBufferImagePtr EncodedBufferImage::New( const uint8_t * const encodedImage,
const std::size_t encodedImageByteCount,
const ImageAttributes& attributes,
#include <dali/internal/event/images/frame-buffer-image-impl.h>
// INTERNAL INCLUDES
+#include <dali/public-api/object/type-registry.h>
#include <dali/internal/event/common/thread-local-storage.h>
#include <dali/internal/event/resources/resource-client.h>
namespace Internal
{
+namespace
+{
+TypeRegistration mType( typeid( Dali::FrameBufferImage ), typeid( Dali::Image ), NULL );
+} // unnamed namespace
+
FrameBufferImage::~FrameBufferImage()
{
}
#include <dali/internal/event/images/nine-patch-image-impl.h>
// INTERNAL INCLUDES
+#include <dali/public-api/object/type-registry.h>
#include <dali/integration-api/bitmap.h>
#include <dali/internal/event/images/bitmap-external.h>
#include <dali/internal/event/common/thread-local-storage.h>
namespace Internal
{
+namespace
+{
+TypeRegistration mType( typeid( Dali::NinePatchImage ), typeid( Dali::Image ), NULL );
+} // unnamed namespace
NinePatchImagePtr NinePatchImage::New( const std::string& filename, const Dali::ImageAttributes& attributes, LoadPolicy loadPol, ReleasePolicy releasePol )
{
#include <dali/internal/event/modeling/model-logger.h>
#include <dali/internal/event/modeling/model-data-impl.h>
#include <dali/public-api/modeling/model-animation-map.h>
+#include <dali/public-api/object/type-registry.h>
#include <dali/internal/event/resources/resource-client.h>
#include <dali/internal/update/resources/resource-manager.h>
namespace Internal
{
+namespace
+{
+TypeRegistration mType( typeid( Dali::Model ), typeid( Dali::BaseHandle ), NULL );
+} // unnamed namespace
+
using Dali::Vector4;
ModelPtr Model::New(const std::string& name)