NativeImageSource --> NativeImageInterface is simple valid job.
NativeImageInterface --> NativeImageSource is not simple and expensive job.
WebEngine / WebPlugin defined at dali-adaptor/devel-api and
NativeImageSource defined at dali-adaptor/public-api.
So there is no reason to convert NativeImageSource to NativeImageInterface.
Change-Id: Iae96e3b50ece16fcc6b17723b174a26c454cdddc
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
// EXTERNAL INCLUDES
#include <functional>
#include <memory>
// EXTERNAL INCLUDES
#include <functional>
#include <memory>
+#include <dali/public-api/images/native-image-interface.h>
+#include <dali/public-api/math/rect.h>
+#include <dali/public-api/signals/dali-signal.h>
+#include <dali/public-api/adaptor-framework/native-image-source.h>
#include <dali/devel-api/adaptor-framework/web-engine-hit-test.h>
#include <dali/devel-api/common/bitwise-enum.h>
#include <dali/devel-api/adaptor-framework/web-engine-hit-test.h>
#include <dali/devel-api/common/bitwise-enum.h>
-#include <dali/public-api/images/native-image-interface.h>
-#include <dali/public-api/math/rect.h>
-#include <dali/public-api/signals/dali-signal.h>
/**
* @brief Get image to render.
*/
/**
* @brief Get image to render.
*/
- virtual NativeImageInterfacePtr GetNativeImageSource() = 0;
+ virtual NativeImageSourcePtr GetNativeImageSource() = 0;
/**
* @brief Return the URL of the Web.
/**
* @brief Return the URL of the Web.
GetImplementation(*this).Destroy();
}
GetImplementation(*this).Destroy();
}
-NativeImageInterfacePtr WebEngine::GetNativeImageSource()
+NativeImageSourcePtr WebEngine::GetNativeImageSource()
{
return GetImplementation(*this).GetNativeImageSource();
}
{
return GetImplementation(*this).GetNativeImageSource();
}
/**
* @brief Get native image source to render.
*/
/**
* @brief Get native image source to render.
*/
- NativeImageInterfacePtr GetNativeImageSource();
+ NativeImageSourcePtr GetNativeImageSource();
/**
* @brief Get settings of WebEngine.
/**
* @brief Get settings of WebEngine.
-Dali::NativeImageInterfacePtr WebEngine::GetNativeImageSource()
+Dali::NativeImageSourcePtr WebEngine::GetNativeImageSource()
{
return mPlugin->GetNativeImageSource();
}
{
return mPlugin->GetNativeImageSource();
}
/**
* @copydoc Dali::WebEngine::GetNativeImageSource()
*/
/**
* @copydoc Dali::WebEngine::GetNativeImageSource()
*/
- Dali::NativeImageInterfacePtr GetNativeImageSource();
+ Dali::NativeImageSourcePtr GetNativeImageSource();
/**
* @copydoc Dali::WebEngine::GetSettings()
/**
* @copydoc Dali::WebEngine::GetSettings()