Revert "[Tizen] Fix build errors in adaptor-uv by ecore wayland"
[platform/core/uifw/dali-adaptor.git] / adaptors / tizen / display-connection-impl-tizen.cpp
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <display-connection-impl.h>
20
21 // EXTERNAL_HEADERS
22 #include <tbm_bufmgr.h>
23 #include <dali/integration-api/debug.h>
24
25 // INTERNAL HEADERS
26 #include <native-render-surface.h>
27 #include <gl/egl-implementation.h>
28
29 namespace Dali
30 {
31
32 namespace Internal
33 {
34
35 namespace Adaptor
36 {
37
38 EGLNativeDisplayType DisplayConnection::GetNativeDisplay()
39 {
40   return reinterpret_cast< EGLNativeDisplayType >( tbm_bufmgr_init( -1 ) );
41 }
42
43 void DisplayConnection::ReleaseNativeDisplay()
44 {
45   if( mDisplay )
46   {
47     tbm_bufmgr_deinit( reinterpret_cast< tbm_bufmgr >( mDisplay ) );
48   }
49 }
50
51 } // namespace Adaptor
52
53 } // namespace Internal
54
55 } // namespace Dali