This resolves linker errors to enable EFL port.
Change-Id: I8c6affe1bf430e478c874df9fe6fb1ebcf56a169
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
"win/wrapped_window_proc.h",
]
+ if (use_efl) {
+ sources += external_base_sources
+ }
+
# winternl.h and NTSecAPI.h have different definitions of UNICODE_STRING.
# There's only one client of NTSecAPI.h in base but several of winternl.h,
# so exclude the NTSecAPI.h one.
"win/wrapped_window_proc_unittest.cc",
]
- if (use_efl) {
- sources += external_base_sources
- }
-
defines = []
if (use_efl) {
#include "ui/display/display_switches.h"
#include "ui/gfx/switches.h"
-#if defined(USE_AURA) || defined(OS_MACOSX) || defined(USE_EFL)
+#if defined(USE_AURA) || defined(OS_MACOSX)
#include "content/browser/compositor/image_transport_factory.h"
#endif
TRACE_EVENT0("shutdown", "BrowserMainLoop::Subsystem:MidiService");
midi_service_->Shutdown();
}
-
+#if !defined(USE_EFL)
TRACE_EVENT0("shutdown",
"BrowserMainLoop::Subsystem:SpeechRecognitionManager");
io_thread_->task_runner()->DeleteSoon(FROM_HERE,
speech_recognition_manager_.release());
-
+#endif
memory_pressure_monitor_.reset();
#if defined(OS_MACOSX)
BrowserCompositorMac::DisableRecyclingForShutdown();
#endif
-#if defined(USE_AURA) || defined(OS_MACOSX) || defined(USE_EFL)
+#if defined(USE_AURA) || defined(OS_MACOSX)
{
TRACE_EVENT0("shutdown",
"BrowserMainLoop::Subsystem:ImageTransportFactory");
established_gpu_channel = false;
always_uses_gpu = ShouldStartGpuProcessOnBrowserStartup();
BrowserGpuChannelHostFactory::Initialize(established_gpu_channel);
+#elif defined(USE_EFL)
+ BrowserGpuChannelHostFactory::Initialize(established_gpu_channel);
#else
established_gpu_channel = true;
if (parsed_command_line_.HasSwitch(switches::kDisableGpu) ||
media_stream_manager_.reset(new MediaStreamManager(
audio_system_.get(), audio_manager_->GetTaskRunner()));
}
-
+#if !defined(USE_EFL)
{
TRACE_EVENT0("startup",
"BrowserMainLoop::BrowserThreadsStarted:InitSpeechRecognition");
audio_system_.get(), audio_manager_.get(),
media_stream_manager_.get()));
}
-
+#endif
{
TRACE_EVENT0(
"startup",
std::unique_ptr<media::AudioSystem> audio_system_;
std::unique_ptr<midi::MidiService> midi_service_;
-
+#if !defined(USE_EFL)
// Must be deleted on the IO thread.
std::unique_ptr<SpeechRecognitionManagerImpl> speech_recognition_manager_;
-
+#endif
#if defined(OS_WIN)
std::unique_ptr<media::SystemMessageWindowWin> system_message_window_;
#elif defined(OS_LINUX) && defined(USE_UDEV)
viz::FrameSinkId AllocateFrameSinkId() {
#if defined(OS_ANDROID)
return CompositorImpl::AllocateFrameSinkId();
+#elif defined(USE_EFL)
+ return viz::FrameSinkId();
#else
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
return factory->GetContextFactoryPrivate()->AllocateFrameSinkId();
viz::FrameSinkManagerImpl* GetFrameSinkManager() {
#if defined(OS_ANDROID)
return CompositorImpl::GetFrameSinkManager();
+#elif defined(USE_EFL)
+ return nullptr;
#else
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
if (!factory)
viz::HostFrameSinkManager* GetHostFrameSinkManager() {
#if defined(OS_ANDROID)
return CompositorImpl::GetHostFrameSinkManager();
+#elif defined(USE_EFL)
+ return nullptr;
#else
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
if (!factory)
FrameSinkVideoCaptureDevice::FrameSinkVideoCaptureDevice()
: capturer_creator_(base::BindRepeating(&CreateCapturer)),
binding_(this),
+#if !defined(EWK_BRINGUP)
cursor_renderer_(RescopeToUIThread(CursorRenderer::Create(
CursorRenderer::CURSOR_DISPLAYED_ON_MOUSE_MOVEMENT))),
+#endif
weak_factory_(this) {
DCHECK(cursor_renderer_);
}
#if BUILDFLAG(ENABLE_PLUGINS)
AddFilter(new PepperRendererConnection(GetID()));
#endif
+#if !defined(USE_EFL)
AddFilter(new SpeechRecognitionDispatcherHost(
GetID(), storage_partition_impl_->GetURLRequestContext()));
+#endif
AddFilter(new FileAPIMessageFilter(
GetID(), storage_partition_impl_->GetURLRequestContext(),
storage_partition_impl_->GetFileSystemContext(),
renderer_cmd->AppendSwitch(switches::kDisableDatabases);
}
-#if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
+#if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) && !defined(USE_EFL)
#if !BUILDFLAG(ENABLE_MUS)
// If gpu compositing is not being used, tell the renderer at startup. This
// is inherently racey, as it may change while the renderer is being launched,
ShellContentBrowserClient* g_browser_client;
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) && !defined(USE_EFL)
breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost(
const std::string& process_type) {
base::FilePath dumps_path =
breakpad::CrashDumpObserver::GetInstance()->BrowserChildProcessStarted(
child_process_id, mappings);
-#else
+#elif !defined(USE_EFL)
int crash_signal_fd = GetCrashSignalFD(command_line);
if (crash_signal_fd >= 0) {
mappings->Share(kCrashDumpSignal, crash_signal_fd);
import("//build/config/ui.gni")
import("//third_party/protobuf/proto_library.gni")
+if (use_efl) {
+ import("//tizen_src/chromium_impl/gpu/gpu_efl.gni")
+}
+
group("service") {
if (is_component_build) {
public_deps = [
configs -= [ "//build/config/compiler:default_optimization" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
+
+ if (use_efl) {
+ sources += external_gles2_implementation_sources
+ }
}
proto_library("disk_cache_proto") {
if (use_system_libjpeg) {
public_configs = [ ":system_libjpeg_config" ]
} else if (use_libjpeg_turbo) {
- public_configs = [ "//build/secondary/third_party/libjpeg_turbo:libjpeg_config" ]
+ public_configs = [ "//third_party/libjpeg_turbo:libjpeg_config" ]
} else {
public_configs = [ "//third_party/libjpeg:libjpeg_config" ]
}
# Links a default implementation of task queues to targets
# that depend on the target rtc_task_queue. Set to false to
# use an external implementation.
- rtc_link_task_queue_impl = true
+ rtc_link_task_queue_impl = !use_efl
if (current_cpu == "arm" || current_cpu == "arm64") {
rtc_prefer_fixed_point = true
skip_in_browser(false) {
}
+NativeWebKeyboardEvent::NativeWebKeyboardEvent(
+ const NativeWebKeyboardEvent& other)
+ : WebKeyboardEvent(other),
+ os_event(CopyEvent(other.os_event)),
+ skip_in_browser(other.skip_in_browser) {}
+
NativeWebKeyboardEvent& NativeWebKeyboardEvent::operator=(
const NativeWebKeyboardEvent& other) {
WebKeyboardEvent::operator=(other);
#include "content/common/cursors/webcursor_efl.h"
#include "content/common/input_messages.h"
#include "content/common/view_messages.h"
-#include "content/gpu/shared_mailbox_manager.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/context_factory.h"
#include "content/public/browser/render_process_host.h"
external_content_gpu_efl_sources = [
"//tizen_src/chromium_impl/content/gpu/gpu_thread_override_efl.cc",
"//tizen_src/chromium_impl/content/gpu/in_process_gpu_thread_efl.cc",
- "//tizen_src/chromium_impl/content/gpu/shared_mailbox_manager.h",
- "//tizen_src/chromium_impl/content/gpu/shared_mailbox_manager.cc",
- "//gpu/command_buffer/service/mailbox_manager_impl.h",
- "//gpu/command_buffer/service/mailbox_manager_impl.cc",
]
external_exclude_content_gpu_efl_sources = [ "in_process_gpu_thread.cc" ]
// found in the LICENSE file.
#include "content/gpu/gpu_process.h"
-#include "content/gpu/shared_mailbox_manager.h"
#include "content/public/common/content_client.h"
#include "content/public/gpu/content_gpu_client.h"
+#include "gpu/command_buffer/client/shared_mailbox_manager.h"
#include "gpu/command_buffer/service/mailbox_manager.h"
#include "gpu/config/gpu_info_collector.h"
#include "gpu/ipc/service/gpu_init.h"
-#include "ipc/ipc_channel.h"
-#include "ipc/ipc_message_macros.h"
#include "ui/gl/gl_shared_context_efl.h"
#define private public
// Implementation of InProcessGpuThread and GpuChildThread overrides
// in order to provide on startup shared context and mailbox manager
-// created form Efl shared evas gl context.
+// created from Efl shared evas gl context.
namespace content {
const InProcessChildThreadParams& params,
std::unique_ptr<gpu::GpuInit> gpu_init)
: GpuChildThread(params, std::move(gpu_init)) {}
-
- private:
- bool Send(IPC::Message* msg) override {
- // The GPU process must never send a synchronous IPC message to the browser
- // process. This could result in deadlock.
- DCHECK(!msg->is_sync());
-
- return ChildThreadImpl::Send(msg);
- }
-
- // IPC::Listener implementation via ChildThreadImpl:
- void OnAssociatedInterfaceRequest(
- const std::string& name,
- mojo::ScopedInterfaceEndpointHandle handle) override {
- if (associated_interfaces_.CanBindRequest(name))
- associated_interfaces_.BindRequest(name, std::move(handle));
- else
- ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle));
- }
-
};
struct InProcessGpuThreadEfl : public content::InProcessGpuThread {
--- /dev/null
+// Copyright 2015 Samsung Electronics. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "shared_mailbox_manager.h"
+
+#include "gpu/command_buffer/service/mailbox_manager_impl.h"
+
+// static
+gpu::MailboxManager* SharedMailboxManager::GetMailboxManager() {
+ static std::unique_ptr<gpu::MailboxManager> mailbox_manager =
+ std::make_unique<gpu::gles2::MailboxManagerImpl>();
+ return mailbox_manager.get();
+}
--- /dev/null
+// Copyright 2015 Samsung Electronics. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "gpu/command_buffer/client/gles2_impl_export.h"
+
+namespace gpu {
+class MailboxManager;
+} // namespace gpu
+
+struct GLES2_IMPL_EXPORT SharedMailboxManager {
+ static gpu::MailboxManager* GetMailboxManager();
+};
void GrabWindowSnapshotAsync(
gfx::NativeWindow window,
const gfx::Rect& source_rect,
- scoped_refptr<base::TaskRunner> background_task_runner,
- const GrabWindowSnapshotAsyncPNGCallback& callback) {
+ const GrabWindowSnapshotAsyncCallback& callback) {
NOTIMPLEMENTED();
}
void GrabViewSnapshotAsync(
gfx::NativeView view,
const gfx::Rect& source_rect,
- scoped_refptr<base::TaskRunner> background_task_runner,
- const GrabWindowSnapshotAsyncPNGCallback& callback) {
- GrabWindowSnapshotAsync(view, source_rect, background_task_runner, callback);
+ const GrabWindowSnapshotAsyncCallback& callback) {
+ GrabWindowSnapshotAsync(view, source_rect, callback);
}
} // namespace ui
# FIXME: Followings are guarded just for bringup.
if (ewk_bringup) {
sources -= [
- "browser/permission_manager_efl.cc",
- "browser/permission_manager_efl.h",
"browser/vibration/vibration_provider_client.cc",
"browser/vibration/vibration_provider_client.h",
- "devtools_delegate_efl.cc",
- "devtools_delegate_efl.h",
- "devtools_manager_delegate_efl.cc",
- "devtools_manager_delegate_efl.h",
"permission_popup_manager.cc",
"permission_popup_manager.h",
]
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
std::unique_ptr<net::CookieStore> cookie_store = GetCookieStore();
-
- // FIXME: EWK_BRINGUP: Check it.
- if (cookie_store.get()) {
- net::ResultSavingCookieCallback<uint32_t> callback;
+ if (cookie_store) {
cookie_store->DeleteSessionCookiesAsync(
- base::Bind(&net::ResultSavingCookieCallback<uint32_t>::Run,
- base::Unretained(&callback)));
- callback.WaitUntilDone();
+ base::OnceCallback<void(uint32_t)>());
}
}
}
std::string DevToolsDelegateEfl::GetDiscoveryPageHTML() {
- return ResourceBundle::GetSharedInstance()
+ return ui::ResourceBundle::GetSharedInstance()
.GetRawDataResource(IDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE)
.as_string();
}
Ewk_Vibration_Client_Vibration_Cancel_Cb cancel,
void* data)
{
+#if !defined(EWK_BRINGUP)
VibrationProviderClientEwk* vibra_client = VibrationProviderClientEwk::GetInstance();
vibra_client->SetVibrationClientCallbacks(vibrate, cancel, data);
+#endif
}
Eina_Bool ewk_context_tizen_extensible_api_string_set(Ewk_Context* context, const char* extensible_api, Eina_Bool enable)
printf("HitTest: link title %s\n", ewk_hit_test_link_title_get(ht));
printf("HitTest: link label %s\n",ewk_hit_test_link_label_get(ht));
printf("HitTest: image uri %s\n", ewk_hit_test_image_uri_get(ht));
+#if !defined(EWK_BRINGUP)
printf("HitTest: media uri %s\n", ewk_hit_test_media_uri_get(ht));
+#endif
printf("HitTest: tag name %s\n", ewk_hit_test_tag_name_get(ht));
printf("HitTest: node value %s\n", ewk_hit_test_node_value_get(ht));
printf("HitTest: image length %d\n", ewk_hit_test_image_buffer_length_get(ht));
configs += [ "//tizen_src/build:libelementary" ]
public_configs += [ "//tizen_src/build:elementary-public" ]
deps = [
+ "//build/config:exe_and_shlib_deps",
"//tizen_src/ewk/efl_integration:chromium-ewk",
"//tizen_src/ewk/efl_integration:launch_exec",
]