: _VisualElementSurfaceImpl(size)
, __pEvasImage(null)
, __pBuffer(null)
++ , __fromOutside(false)
{
ClearLastResult();
evas_object_resize(__pEvasImage, outputSize.width, outputSize.height);
evas_object_image_data_set(__pEvasImage, reinterpret_cast<void*>(__pBuffer));
++
#if 1 // Todo : Temporary code(regarding the visibility of evas source object)
evas_object_show(__pEvasImage);
evas_object_move(__pEvasImage, -999999, -999999);
: _VisualElementSurfaceImpl(size)
, __pEvasImage(null)
, __pBuffer(null)
++ , __fromOutside(true)
{
ClearLastResult();
__pEvasImage = reinterpret_cast<Evas_Object*>(object);
}
SysTryReturnVoidResult(NID_UI_ANIM, __pEvasImage, E_SYSTEM, "[E_SYSTEM] A system error has been occurred. Failed to create a new surface.");
++
#if 1 // Todo : Temporary code(regarding the visibility of evas source object)
evas_object_show(__pEvasImage);
evas_object_move(__pEvasImage, -999999, -999999);
if (__pEvasImage != null)
{
evas_object_hide(__pEvasImage);
- if (__pBuffer)
+
- // * DO NOT delete object which has a native surface
- // because it has been created from other modules.
- if (!evas_object_image_native_surface_get(__pEvasImage))
++ // * DO NOT delete object which has been created from other modules.
++ if (!__fromOutside)
{
evas_object_image_data_set(__pEvasImage, null);
evas_object_del(__pEvasImage);