}
if (is_tizen) {
- libs += [ "pthread" ]
+ libs += [
+ "pthread",
+ "dlog",
+ ]
}
if (use_allocator_shim) {
target_arch = "win"
} else if (is_mac) {
target_arch = "mac"
- } else if (is_linux) {
+ } else if (is_linux || is_tizen) {
target_arch = "linux"
} else {
# This will cause the script to fail.
}
#endif
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_TIZEN)
void HostDisplayClient::DidCompleteSwapWithNewSize(const gfx::Size& size) {
NOTIMPLEMENTED();
}
mojo::PendingReceiver<mojom::LayeredWindowUpdater> receiver) override;
#endif
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_TIZEN)
void DidCompleteSwapWithNewSize(const gfx::Size& size) override;
#endif
#if defined(OS_ANDROID)
if (display_client_)
display_client_->DidCompleteSwapWithSize(pixel_size);
-#elif defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#elif defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_TIZEN)
if (display_client_ && pixel_size != last_swap_pixel_size_) {
last_swap_pixel_size_ = pixel_size;
display_client_->DidCompleteSwapWithNewSize(last_swap_pixel_size_);
return sandbox_status_;
}
+#if defined(OS_TIZEN)
+void ZygoteCommunication::LoadInjectedBundlePath(
+ const std::string& injected_bundle_path) {
+ DCHECK(init_);
+ base::Pickle pickle;
+
+ pickle.WriteInt(kZygoteCommandLoadInjectedBundle);
+ pickle.WriteString(injected_bundle_path);
+ if (!SendMessage(pickle, NULL))
+ LOG(ERROR) << "Failed to send LoadInjectedBundlePath message to zygote";
+}
+
+void ZygoteCommunication::DropProcessPrivileges(const std::string& app_id) {
+ DCHECK(init_);
+ base::Pickle pickle;
+
+ pickle.WriteInt(kZygoteCommandDropProcessPrivileges);
+ pickle.WriteString(app_id);
+ base::AutoLock lock(control_lock_);
+ if (!SendMessage(pickle, NULL))
+ LOG(ERROR) << "Failed to send DropProcessPrivileges message to zygote";
+}
+#endif
+
} // namespace content
// Returns the sandbox status of this zygote.
int GetSandboxStatus();
+#if defined(OS_TIZEN)
+ void LoadInjectedBundlePath(const std::string& injected_bundle_path);
+ void DropProcessPrivileges(const std::string& app_id);
+#endif
+
private:
// Should be called every time a Zygote child is born.
void ZygoteChildBorn(pid_t process);
base::Unretained(this)));
}
+#if defined(USE_EFL)
+void GpuChildThread::SetGpuServiceConnection(viz::GpuServiceImpl* service) {
+ OnGpuServiceConnection(service);
+}
+#endif
+
void GpuChildThread::CreateVizMainService(
mojo::PendingAssociatedReceiver<viz::mojom::VizMain> pending_receiver) {
viz_main_.BindAssociated(std::move(pending_receiver));
void Init(const base::Time& process_start_time);
+#if defined(USE_EFL)
+ void SetGpuServiceConnection(viz::GpuServiceImpl* service);
+#endif
+
private:
GpuChildThread(base::RepeatingClosure quit_closure,
ChildThreadImpl::Options options,
#include "gpu/ipc/common/gpu_memory_buffer_impl_native_pixmap.h"
#if defined(OS_TIZEN)
-#include "third_party/vulkan/include/vulkan/vulkan.h"
+#include "third_party/vulkan_headers/include/vulkan/vulkan.h"
#else
#include <vulkan/vulkan.h>
#endif
#define GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_NATIVE_PIXMAP_H_
#if defined(OS_TIZEN)
-#include "third_party/vulkan/include/vulkan/vulkan.h"
+#include "third_party/vulkan_headers/include/vulkan/vulkan.h"
#else
#include <vulkan/vulkan.h>
#endif
#ifndef GPU_VULKAN_VMA_WRAPPER_H_
#define GPU_VULKAN_VMA_WRAPPER_H_
+#if defined(OS_TIZEN)
+#include "third_party/vulkan_headers/include/vulkan/vulkan.h"
+#else
#include <vulkan/vulkan.h>
+#endif
#include "base/component_export.h"
#define GPU_VULKAN_VULKAN_DEVICE_QUEUE_H_
#if defined(OS_TIZEN)
-#include "third_party/vulkan/include/vulkan/vulkan.h"
+#include "third_party/vulkan_headers/include/vulkan/vulkan.h"
#else
#include <vulkan/vulkan.h>
#endif
ChromeUtilityPrintingMsgStart,
OzoneGpuMsgStart,
WebTestMsgStart,
+#if defined(OS_TIZEN)
+ TtsMsgStart,
+#endif
ExtensionsGuestViewMsgStart,
GuestViewMsgStart,
MediaPlayerDelegateMsgStart,
%{?_use_system_icu: %define __use_system_icu %{_use_system_icu}}
# Product tv can't utilize system icu due to nacl dependency.
%if "%{?profile}" != "tv" && %{tizen_version} == 60 && %{?_use_system_icu: 0}%{!?_use_system_icu: 1}
-%define __use_system_icu 1
+# Disabling system icu temporarily as it needs to be upgraded to version >= 67
+%define __use_system_icu 0
%endif
Requires: /usr/bin/systemctl
disable_variants = true
enabled_features = []
- if (is_linux && use_udev) {
+ if ((is_linux || is_tizen) && use_udev) {
enabled_features += [ "enable_input_device_manager" ]
}
#include <errno.h>
#include <fcntl.h>
+#if !defined(EWK_BRINGUP) // FIXME:m85 bringup
#include <linux/kcmp.h>
+#endif
#include <sys/socket.h>
// Some arch's (arm64 for instance) unistd.h don't pull in symbols used here
return If(domain == AF_UNIX, Allow()).Else(Error(EPERM));
}
#endif
+#if !defined(EWK_BRINGUP) // FIXME:m85 bringup
case __NR_kcmp: {
const Arg<int> pid1(0);
const Arg<int> pid2(1);
Allow())
.Else(Error(EPERM));
}
+#endif
default:
// Default to the generic GPU policy.
return GpuProcessPolicy::EvaluateSyscall(sysno);
_gn_command_path = os.path.join(buildtools_platform_dir,
"gn{}".format(exe_suffix))
+ # //tizen_src/buildtools for tizen platform
+ f = open(root_src_dir + "/target.txt", 'r')
+ str = f.read().strip()
+ if (str == "tizen"):
+ tizenbuildtools_dir = os.path.join(root_src_dir + "/tizen_src",
+ "buildtools")
+ _clang_format_command_path = os.path.join(
+ tizenbuildtools_dir, "clang-format{}".format(exe_suffix))
+ _gn_command_path = os.path.join(tizenbuildtools_dir,
+ "gn{}".format(exe_suffix))
+
def auto_format(contents, filename):
assert isinstance(filename, str)
"memory_usage_monitor.h",
]
- if (is_linux) {
+ if (is_linux || is_tizen) {
sources += [
"memory_usage_monitor_posix.cc",
"memory_usage_monitor_posix.h",
def GetBinaryPath():
- return os_path.join(os_path.dirname(__file__), *{
- 'Darwin': ('mac', 'node-darwin-x64', 'bin', 'node'),
- 'Linux': ('linux', 'node-linux-x64', 'bin', 'node'),
- 'Windows': ('win', 'node.exe'),
- }[platform.system()])
+ f = open(os_path.dirname(__file__)+"/target.txt",'r')
+ str = f.read().strip()
+ if (str == "tizen") :
+ return os_path.join(os_path.dirname(__file__),"tizen/","node")
+ else :
+ return os_path.join(os_path.dirname(__file__), *{
+ 'Darwin': ('mac', 'node-darwin-x64', 'bin', 'node'),
+ 'Linux': ('linux', 'node-linux-x64', 'bin', 'node'),
+ 'Windows': ('win', 'node.exe'),
+ }[platform.system()])
def RunNode(cmd_parts, stdout=None):
$ADDITIONAL_GN_PARAMETERS
$EXTRA_GN_ARGS
"
+
+echo $target > target.txt
+echo $target > third_party/node/target.txt
+
printf "GN_ARGUMENTS:\n"
for arg in $_GN_ARGS; do
printf " * ${arg##-D}\n"
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content_client_export.h"
-
-#include "content/public/common/content_client.h"
+#include "content/common/content_client_export.h"
namespace content {
#define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_EXPORT_H_
#include "content/common/content_export.h"
+#include "content/public/common/content_client.h"
namespace content {
-class ContentClient;
-
CONTENT_EXPORT ContentClient* GetContentClientExport();
} // namespace content
#define private public
#include "gpu/ipc/service/gpu_channel_manager.h"
#include "content/gpu/in_process_gpu_thread.h"
+#undef private
#include "content/gpu/gpu_child_thread.h"
// Implementation of InProcessGpuThread and GpuChildThread overrides
: GpuChildThread(params, std::move(gpu_init)) {}
void OnGpuServiceConnection(viz::GpuServiceImpl* gpu_service) override {
- GpuChildThread::OnGpuServiceConnection(gpu_service);
+ GpuChildThread::SetGpuServiceConnection(gpu_service);
gpu_service->gpu_channel_manager()->share_group_ =
GLSharedContextEfl::GetShareGroup();
SharedMailboxManager::SetMailboxManager(
##############################################################################
external_content_renderer_efl_sources = []
-if (is_tizen) {
- external_content_renderer_efl_sources += [
- "//tizen_src/chromium_impl/content/renderer/tts_dispatcher_efl.cc",
- "//tizen_src/chromium_impl/content/renderer/tts_dispatcher_efl.h",
- ]
+if (!ewk_bringup) { #FIXME:m85 bringup
+ if (is_tizen) {
+ external_content_renderer_efl_sources += [
+ "//tizen_src/chromium_impl/content/renderer/tts_dispatcher_efl.cc",
+ "//tizen_src/chromium_impl/content/renderer/tts_dispatcher_efl.h",
+ ]
+ }
}
-
if (tizen_multimedia_support) {
#"media/audio_decoder.cc",
#"media/audio_decoder.h",
#endif
#if defined(OS_TIZEN)
+#if !defined(EWK_BRINGUP) // FIXME:m85 bringup
p_command_line->AppendSwitchASCII(
switches::kAcceleratedCanvas2dMSAASampleCount, "4");
-#if !defined(EWK_BRINGUP)
p_command_line->AppendSwitch(switches::kEnableGestureTapHighlight);
p_command_line->AppendSwitch(switches::kEnableSpatialNavigation);
p_command_line->AppendSwitch(switches::kMainFrameResizesAreOrientationChanges);
#include "base/command_line.h"
#include "common/content_switches_efl.h"
#include "content/common/content_client_export.h"
+#include "content/common/zygote/zygote_communication_linux.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/zygote/zygote_handle.h"
#include "content_browser_client_efl.h"
-#include "services/service_manager/zygote/common/zygote_handle.h"
-#include "services/service_manager/zygote/host/zygote_communication_linux.h"
#endif
using content::BrowserThread;
// Drop process privillages while web app is launching
// from WRT process pool. It should be handled in webengine side
// in product tv profile because this profile uses the zygote process.
- service_manager::GetGenericZygote()->DropProcessPrivileges(tizen_app_id_);
+ content::GetGenericZygote()->DropProcessPrivileges(tizen_app_id_);
#endif // OS_TIZEN_TV_PRODUCT
} else {
// Drop process privillages while web app is launching
// from WRT process pool. It is not necessary in single process mode,
// because it is handled in crosswalk side in single process mode.
- service_manager::GetGenericZygote()->DropProcessPrivileges(tizen_app_id_);
+ content::GetGenericZygote()->DropProcessPrivileges(tizen_app_id_);
}
#endif // OS_TIZEN
}
}
} else {
// Preload injected bundle on zygote process for process pool.
- service_manager::GetGenericZygote()->LoadInjectedBundlePath(
+ content::GetGenericZygote()->LoadInjectedBundlePath(
injected_bundle_path_);
}
}
#include "base/notreached.h"
#include "base/time/time.h"
-#if (defined(OS_LINUX) || defined(OS_ANDROID)) && !defined(OS_TIZEN)
+#if defined(OS_TIZEN)
+#include "third_party/libsync/src/include/sync/sync.h"
+#elif (defined(OS_LINUX) || defined(OS_ANDROID))
#include <sync/sync.h>
#endif
struct NativePixmapHandle {
array<NativePixmapPlane> planes;
- [EnableIf=is_linux]
uint64 modifier;
+
[EnableIf=is_chromeos]
uint64 modifier;
#include <set>
#include <string>
+#include <vector>
#include "base/component_export.h"
#include "base/macros.h"
#include <vector>
#if defined(OS_TIZEN)
-#include "third_party/vulkan/include/vulkan/vulkan.h"
+#include "third_party/vulkan_headers/include/vulkan/vulkan.h"
#else
#include <vulkan/vulkan.h>
#endif