Applied context restoring
[framework/osp/uifw.git] / src / ui / inc / FUiAnim_DisplayManager.h
index 705b118..67205a6 100644 (file)
@@ -2,14 +2,14 @@
 // Open Service Platform
 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
 //
-// Licensed under the Flora License, Version 1.0 (the License);
+// Licensed under the Apache License, Version 2.0 (the License);
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
-//     http://floralicense.org/license/
+//     http://www.apache.org/licenses/LICENSE-2.0/
 //
 // Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
+// distributed under the License is distributed on an "AS IS" BASIS,
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
@@ -49,6 +49,10 @@ public:
        static result ReleaseInstance(void);
        static bool __wakeUpEventAdded;
 
+       // For restoring gl context
+       typedef void (*RestoreContextCallback)(void);
+       static void SetRestoreContextCallback(RestoreContextCallback pRestoreContextCallback);
+       static void RestoreContext(void);
 public:
        _RootVisualElement* CreateRoot(void);
 
@@ -80,6 +84,7 @@ private:
        static int __eventType;
        static void* __pWakeUpEventHandler;
        static _DisplayManager* __pInstance;
+       static RestoreContextCallback __pRestoreContextCallback;
 }; // _DisplayManager
 
 }}} //namespace Tizen { namespace Ui { namespace Animations