Applied context restoring
[framework/osp/uifw.git] / src / ui / inc / FUiAnim_DisplayManager.h
index 2a82850..67205a6 100644 (file)
@@ -9,7 +9,7 @@
 //     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