[NUI] Revert "Workaround of Vulkan backend csfs crash issue (#630)" (#634)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 2 Jan 2019 02:37:13 +0000 (11:37 +0900)
committerGitHub <noreply@github.com>
Wed, 2 Jan 2019 02:37:13 +0000 (11:37 +0900)
This reverts commit 88dfb69c07810dc9ec5ae8cdb0340600f7aa323a.

- this crash issue is solved by csfs' change

src/Tizen.NUI/src/internal/NDalicPINVOKE.cs
src/Tizen.NUI/src/internal/VersionCheck.cs
src/Tizen.NUI/src/public/NUIApplication.cs

index d4b8be5..8e47d7d 100755 (executable)
@@ -205,29 +205,6 @@ namespace Tizen.NUI
                                           argumentNullDelegate,
                                           argumentOutOfRangeDelegate);
             }
-
-            //Workaround for Vulkan. should be removed.
-            internal void SetAgain()
-            {
-                SWIGRegisterExceptionCallbacks_NDalic(
-                          applicationDelegate,
-                          arithmeticDelegate,
-                          divideByZeroDelegate,
-                          indexOutOfRangeDelegate,
-                          invalidCastDelegate,
-                          invalidOperationDelegate,
-                          ioDelegate,
-                          nullReferenceDelegate,
-                          outOfMemoryDelegate,
-                          overflowDelegate,
-                          systemDelegate);
-
-                SWIGRegisterExceptionCallbacksArgument_NDalic(
-                                          argumentDelegate,
-                                          argumentNullDelegate,
-                                          argumentOutOfRangeDelegate);
-            }
-
         }
 
         protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
@@ -319,24 +296,10 @@ namespace Tizen.NUI
             {
                 SWIGRegisterStringCallback_NDalic(stringDelegate);
             }
-
-            //Workaround for Vulkan. should be removed.
-            internal void SetAgain()
-            {
-                SWIGRegisterStringCallback_NDalic(stringDelegate);
-            }
         }
 
         static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
 
-        //Workaround for Vulkan. should be removed.
-        internal static void SetAgainExceptionHelperAndStringHelper()
-        {
-            swigExceptionHelper.SetAgain();
-            swigStringHelper.SetAgain();
-            Tizen.Log.Error("NUI", $"[NOT ERROR] SetAgainExceptionHelperAndStringHelper()");
-        }
-
 
         static NDalicPINVOKE()
         {
index 5326936..cc597b5 100755 (executable)
@@ -65,7 +65,7 @@ namespace Tizen.NUI
         }
 
         //[Conditional("DEBUG_ON")]
-        static internal void PrintDaliNativeVersion()
+        static private void PrintDaliNativeVersion()
         {
             int ver1 = -1;
             int ver2 = -1;
index 02bc138..2575bf9 100755 (executable)
@@ -147,14 +147,6 @@ namespace Tizen.NUI
             if (windowSize != null) { _windowSize2D = windowSize; }
             if (windowPosition != null) { _windowPosition2D = windowPosition; }
             Registry.Instance.SavedApplicationThread = Thread.CurrentThread;
-
-            //Workaround for Vulkan. should be removed.
-            if (Graphics.Backend == Graphics.BackendType.Vulkan)
-            {
-                Tizen.Log.Error("NUI", "[NOT ERROR] NUIApplication Constructor! Vulkan backend!");
-                Version.PrintDaliNativeVersion();
-                NDalicPINVOKE.SetAgainExceptionHelperAndStringHelper();
-            }
         }
 
         /// <summary>