[4.0] Added capture for wearable
[platform/core/uifw/dali-adaptor.git] / adaptors / tizen / display-connection-impl-tizen.cpp
index f69b398..f65cf8d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
 #include <dali/integration-api/debug.h>
 
 // INTERNAL HEADERS
-#include <native-source-render-surface.h>
+#include <native-render-surface.h>
 #include <gl/egl-implementation.h>
 
 namespace Dali
@@ -35,16 +35,16 @@ namespace Internal
 namespace Adaptor
 {
 
-EGLNativeDisplayType DisplayConnection::GetNativeSourceDisplay()
+EGLNativeDisplayType DisplayConnection::GetNativeDisplay()
 {
-  return (EGLNativeDisplayType)tbm_bufmgr_init( -1 );
+  return reinterpret_cast< EGLNativeDisplayType >( tbm_bufmgr_init( -1 ) );
 }
 
-void DisplayConnection::ReleaseNativeSourceDisplay()
+void DisplayConnection::ReleaseNativeDisplay()
 {
   if( mDisplay )
   {
-    tbm_bufmgr_deinit( (tbm_bufmgr)mDisplay );
+    tbm_bufmgr_deinit( reinterpret_cast< tbm_bufmgr >( mDisplay ) );
   }
 }