mIsMouseLbuttonDown(false),
mCanGoBack(false),
mCanGoForward(false),
- mInDestroyingLWEInstance(false),
mWebContainer(NULL),
mDaliImageSrc(NativeImageSource::New(0, 0, NativeImageSource::COLOR_DEPTH_DEFAULT)),
mNativeDisplay(NULL),
TizenWebEngineLWE::~TizenWebEngineLWE()
{
- Destroy();
}
static std::string Langset()
void TizenWebEngineLWE::TryRendering()
{
- if (mInDestroyingLWEInstance) {
- return;
- }
-
if (mTbmQueue)
{
if ((size_t)tbm_surface_queue_get_width(mTbmQueue) != mWebContainer->Width() ||
void TizenWebEngineLWE::TryUpdateImage(bool needsSync)
{
- if (mInDestroyingLWEInstance) {
- return;
- }
-
mInImageUpdateState = true;
if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext))
{
void TizenWebEngineLWE::Destroy()
{
DestroyRenderingContext();
+
+ if(!mWebContainer)
+ {
+ return;
+ }
+
DestroyInstance();
+ mWebContainer = NULL;
}
void TizenWebEngineLWE::InitRenderingContext()
void TizenWebEngineLWE::DestroyInstance()
{
- if(!mWebContainer)
- {
- return;
- }
- mInDestroyingLWEInstance = true;
+ DALI_ASSERT_ALWAYS(mWebContainer);
mWebContainer->Destroy();
- mInDestroyingLWEInstance = false;
- mWebContainer = NULL;
}
Dali::NativeImageSourcePtr TizenWebEngineLWE::GetNativeImageSource()
bool mIsMouseLbuttonDown;
bool mCanGoBack;
bool mCanGoForward;
- bool mInDestroyingLWEInstance;
std::function<void(LWE::WebContainer*, LWE::ResourceError)> mOnReceivedError;
std::function<void(LWE::WebContainer*, const std::string&)> mOnPageFinishedHandler;