From: Chandan Padhi Date: Tue, 26 May 2015 16:27:08 +0000 (+0530) Subject: [Ozone Wayland] Get wayland display X-Git-Tag: submit/tizen/20201118.160233~860 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a055e06518f961780d560360160aadbfa274666;p=platform%2Fframework%2Fweb%2Fchromium-efl.git [Ozone Wayland] Get wayland display Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12492 Reviewed by: Antonio Gomes, DaeHyun Ko, Eun Namgung, Hyunhak Kim, SeungSeop Park Change-Id: Ifa3bd1d35a8ba107acf1bc5b94b8c9cc7e1445a1 Signed-off-by: Chandan Padhi --- diff --git a/tizen_src/chromium_impl/ui/ozone/ozone_efl.gyp b/tizen_src/chromium_impl/ui/ozone/ozone_efl.gyp index 47d2786..b3fdf83 100644 --- a/tizen_src/chromium_impl/ui/ozone/ozone_efl.gyp +++ b/tizen_src/chromium_impl/ui/ozone/ozone_efl.gyp @@ -13,8 +13,17 @@ { 'target_name': 'ozone_efl', 'type': 'static_library', - 'dependencies': [ - '<(DEPTH)/tizen_src/build/system.gyp:ecore-x', + 'conditions': [ + ['use_wayland==0', { + 'dependencies': [ + '<(DEPTH)/tizen_src/build/system.gyp:ecore-x', + ], + }, + { + 'dependencies': [ + '<(DEPTH)/tizen_src/build/system.gyp:ecore-wayland', + ], + }], ], 'sources': [ 'media_ozone_platform_efl.cc', diff --git a/tizen_src/chromium_impl/ui/ozone/surface_factory_efl.cc b/tizen_src/chromium_impl/ui/ozone/surface_factory_efl.cc index 2ea364d..99382f0 100644 --- a/tizen_src/chromium_impl/ui/ozone/surface_factory_efl.cc +++ b/tizen_src/chromium_impl/ui/ozone/surface_factory_efl.cc @@ -4,9 +4,9 @@ #include "ui/ozone/surface_factory_efl.h" -#if !defined(WAYLAND_BRINGUP) -#include -#else +#include "ecore_x_wayland_wrapper.h" + +#if defined(USE_WAYLAND) #include #endif #include @@ -73,10 +73,11 @@ bool SurfaceFactoryEfl::LoadEGLGLES2Bindings( } intptr_t SurfaceFactoryEfl::GetNativeDisplay() { -#if !defined(WAYLAND_BRINGUP) +#if defined(USE_WAYLAND) + return reinterpret_cast(ecore_wl_display_get()); +#else return reinterpret_cast(ecore_x_display_get()); #endif - return 0; } const int32* SurfaceFactoryEfl::GetEGLSurfaceProperties(