Revert "[Tizen] Add rotation's values to winBase-wl2"
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 28 May 2020 05:15:07 +0000 (14:15 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 28 May 2020 05:15:11 +0000 (14:15 +0900)
This reverts commit 80d23fe647910c1c3b33791cf2941960f7c65898.

Change-Id: I92c8a0ac039dff691df7531fcae0eb958cb83e41

dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp
dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.h

index 9624c20..8c2c04a 100755 (executable)
@@ -760,11 +760,6 @@ void WindowBaseEcoreWl2::Initialize( PositionSize positionSize, Any surface, boo
     CreateWindow( positionSize );
   }
 
-  for( int i = 0; i < 4; ++i )
-  {
-    mAvaiableWindowOrientations[i] = 0;
-  }
-
   mWlSurface = ecore_wl2_window_surface_get( mEcoreWindow );
 
   SetTransparency( isTransparent );
@@ -1567,14 +1562,14 @@ void WindowBaseEcoreWl2::Activate()
 
 void WindowBaseEcoreWl2::SetAvailableAnlges( const std::vector< int >& angles )
 {
+  int rotations[4] = { 0 };
   DALI_LOG_RELEASE_INFO( "WindowBaseEcoreWl2::SetAvailableAnlges, angle's count: %d, angles\n", angles.size() );
-  std::size_t size = angles.size();
-  for( std::size_t i = 0; i < size; ++i )
+  for( std::size_t i = 0; i < angles.size(); ++i )
   {
-    mAvaiableWindowOrientations[i] = static_cast< int >( angles[i] );
-    DALI_LOG_RELEASE_INFO( "%d ", mAvaiableWindowOrientations[i] );
+    rotations[i] = static_cast< int >( angles[i] );
+    DALI_LOG_RELEASE_INFO( "%d ", rotations[i] );
   }
-  ecore_wl2_window_available_rotations_set( mEcoreWindow, mAvaiableWindowOrientations, size );
+  ecore_wl2_window_available_rotations_set( mEcoreWindow, rotations, angles.size() );
 }
 
 void WindowBaseEcoreWl2::SetPreferredAngle( int angle )
index 83d06d2..bd4afb5 100644 (file)
@@ -515,10 +515,6 @@ private:
   int                                  mWindowRotationAngle;
   int                                  mScreenRotationAngle;
   int                                  mSupportedPreProtation;
-
-  // Temporary solution to fix window rotation and window hide
-  // It will be removed when EFL patch is completed.
-  int                                  mAvaiableWindowOrientations[4];
 #ifdef DALI_ELDBUS_AVAILABLE
   Eldbus_Connection*                   mSystemConnection;
 #endif // DALI_ELDBUS_AVAILABLE