Merge "Add window focus API and signals" into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 13 Mar 2017 15:13:59 +0000 (08:13 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Mon, 13 Mar 2017 15:14:00 +0000 (08:14 -0700)
adaptors/common/application-impl.cpp
adaptors/public-api/dali-adaptor-version.cpp
adaptors/tizen/native-image-source-impl-tizen.cpp
packaging/dali-adaptor.spec

index e8d8429..8dd7597 100644 (file)
@@ -370,6 +370,7 @@ void Application::ReplaceWindow(PositionSize windowPosition, const std::string&
   Dali::RenderSurface* renderSurface = windowImpl.GetSurface();
 
   Any nativeWindow = newWindow.GetNativeHandle();
+  Internal::Adaptor::Adaptor::GetImplementation( *mAdaptor ).SurfaceSizeChanged( windowPosition );
   Internal::Adaptor::Adaptor::GetImplementation( *mAdaptor ).ReplaceSurface(nativeWindow, *renderSurface);
   mWindow = newWindow;
 }
index 4d3f3af..5673563 100644 (file)
@@ -28,7 +28,7 @@ namespace Dali
 
 const unsigned int ADAPTOR_MAJOR_VERSION = 1;
 const unsigned int ADAPTOR_MINOR_VERSION = 2;
-const unsigned int ADAPTOR_MICRO_VERSION = 29;
+const unsigned int ADAPTOR_MICRO_VERSION = 30;
 const char * const ADAPTOR_BUILD_DATE    = __DATE__ " " __TIME__;
 
 #ifdef DEBUG_ENABLED
index 591d8b5..c0e5da5 100755 (executable)
@@ -387,7 +387,7 @@ bool NativeImageSource::GlExtensionCreate()
 {
   // casting from an unsigned int to a void *, which should then be cast back
   // to an unsigned int in the driver.
-  EGLClientBuffer eglBuffer = reinterpret_cast< EGLClientBuffer > (mTbmSurface);
+  EGLClientBuffer eglBuffer = reinterpret_cast< EGLClientBuffer >(mTbmSurface);
   if( !eglBuffer )
   {
     return false;
@@ -417,9 +417,17 @@ unsigned int NativeImageSource::TargetTexture()
 
 void NativeImageSource::PrepareTexture()
 {
-  if( mSetSource && GlExtensionCreate() )
+  if( mSetSource )
   {
-    TargetTexture();
+    void* eglImage = mEglImageKHR;
+
+    if( GlExtensionCreate() )
+    {
+      TargetTexture();
+    }
+
+    mEglImageExtensions->DestroyImageKHR( eglImage );
+
     mSetSource = false;
   }
 }
index b2ffb23..957a3f0 100644 (file)
@@ -14,7 +14,7 @@
 
 Name:       dali-adaptor
 Summary:    The DALi Tizen Adaptor
-Version:    1.2.29
+Version:    1.2.30
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0 and BSD-2-Clause and MIT