[Tizen] Fix for Compiler and linker errors 20/294720/16
authoruzair <uzair.jaleel@samsung.com>
Fri, 23 Jun 2023 12:45:25 +0000 (18:15 +0530)
committerDae-Hyun Ko <dhyuna.ko@samsung.com>
Tue, 4 Jul 2023 07:51:50 +0000 (07:51 +0000)
Below change along with [1]  fixes all the related compiler
and linker errors for tizen profile.

Build:  $ ./tizen_src/build/build_tv.sh
        $ ./tizen_src/build/build_standard_armv7l.sh

Launch: $ /usr/apps/org.tizen.chromium-efl/bin/efl_webview_app
        $ /usr/apps/org.tizen.chromium-efl/bin/ubrowser

[1] https://review.tizen.org/gerrit/c/294878

Change-Id: Id7177f267633efab02aeb3efcd548098ad037232
Signed-off-by: uzair <uzair.jaleel@samsung.com>
57 files changed:
base/BUILD.gn
build/config/compiler/BUILD.gn
build/config/linux/BUILD.gn
build/config/ui.gni
build/timestamp.gni
cc/trees/proxy_main.h
components/autofill/content/renderer/password_autofill_agent.cc
components/autofill/core/browser/personal_data_manager.cc
components/version_info/version_info.h
content/browser/BUILD.gn
content/browser/browser_interface_binders.cc
content/browser/renderer_host/render_frame_host_impl.cc
content/browser/speech/tts_platform_impl.cc
content/browser/system_dns_resolution/BUILD.gn
content/browser/web_contents/web_contents_impl.cc
content/renderer/pepper/pepper_video_decoder_host.cc
crypto/nss_util.cc
gpu/ipc/common/gpu_memory_buffer_impl_native_pixmap.cc
gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.h
media/base/video_types.h
media/gpu/sandbox/BUILD.gn
media/mojo/mojom/BUILD.gn
media/mojo/services/BUILD.gn
net/BUILD.gn
net/quic/quic_chromium_client_session.cc
packaging/chromium-efl.spec
ppapi/proxy/var_value_converter.cc
sandbox/linux/BUILD.gn
sandbox/policy/BUILD.gn
sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.cc
sandbox/policy/linux/bpf_network_policy_linux.cc
sandbox/policy/mojom/BUILD.gn
services/network/BUILD.gn
services/network/network_change_manager.cc
services/network/public/cpp/BUILD.gn
services/network/public/mojom/BUILD.gn
services/network/sct_auditing/sct_auditing_cache.cc
storage/browser/quota/quota_manager_impl.cc
third_party/blink/common/mime_util/mime_util.cc
third_party/blink/renderer/modules/xr/BUILD.gn
third_party/blink/renderer/platform/media/web_media_player_impl.cc
third_party/blink/renderer/platform/transforms/affine_transform.h
third_party/swiftshader/include/vulkan/vulkan_core.h
tizen_src/build/config/compiler/BUILD.gn
tizen_src/build/config/tizen_features.gni
tizen_src/build/gn_chromiumefl.sh
tizen_src/chromium_impl/services/device/generic_sensor/platform_sensor_reader_efl.h
tizen_src/ewk/efl_integration/browser/geolocation/location_provider_efl.cc
tizen_src/ewk/efl_integration/browser/geolocation/location_provider_efl.h
tizen_src/ewk/efl_integration/content_browser_client_efl.cc
tizen_src/ewk/efl_integration/content_main_delegate_efl.cc
tizen_src/ewk/efl_integration/eweb_view.cc
tizen_src/ewk/efl_integration/renderer/content_renderer_client_efl.cc
ui/color/dynamic_color/palette_factory.cc
ui/gl/gl_switches.cc
v8/gni/v8.gni
v8/src/compiler/js-heap-broker.h

index 2b9cbf8..a7e6099 100644 (file)
@@ -1004,7 +1004,7 @@ component("base") {
     ]
   }
 
-  if (is_linux || is_chromeos) {
+  if (is_linux || is_chromeos || is_tizen) {
     sources += [
       "debug/proc_maps_linux.cc",
       "debug/proc_maps_linux.h",
@@ -2114,7 +2114,7 @@ component("base") {
   }
 
   # Linux.
-  if (is_linux || is_chromeos) {
+  if (is_linux || is_chromeos || is_tizen) {
     # TODO(brettw) this will need to be parameterized at some point.
     linux_configs = []
     if (use_glib) {
index f811bff..2cc5beb 100644 (file)
@@ -736,7 +736,8 @@ config("compiler") {
 
       ldflags += [ "-Wl,-mllvm,-import-instr-limit=$import_instr_limit" ]
 
-      if (!is_chromeos) {
+      # TODO: Need to check if flag is supported by clang 11
+      if (!is_chromeos && !is_tizen) {
         # TODO(https://crbug.com/972449): turn on for ChromeOS when that
         # toolchain has this flag.
         # We only use one version of LLVM within a build so there's no need to
index 131bb71..3547a9e 100644 (file)
@@ -54,7 +54,7 @@ config("libresolv") {
   libs = [ "resolv" ]
 }
 
-if (use_glib) {
+if (use_glib || is_tizen) {
   pkg_config("glib") {
     packages = [
       "glib-2.0",
index 8521fae..f6bc3ce 100644 (file)
@@ -42,8 +42,7 @@ declare_args() {
 
 assert(!use_glib || (is_linux && !is_castos))
 
-use_atk =
-    is_tizen || (use_glib && !use_efl && current_toolchain == default_toolchain)
+use_atk = use_glib && !use_efl && current_toolchain == default_toolchain
 
 # Whether using Xvfb to provide a display server for a test might be
 # necessary.
index b9b57d9..fc5c747 100644 (file)
@@ -32,3 +32,7 @@ build_timestamp = exec_script(compute_build_timestamp,
                               [ official_name ],
                               "trim string",
                               [ lastchange_file ])
+
+# FIXME(bringup 114) need to track how trailing characters appended to
+# build_timestamp for tizen case.
+build_timestamp = "1684110627"
index f367287..f13945b 100644 (file)
@@ -19,7 +19,7 @@
 #include "cc/trees/proxy_common.h"
 
 #if BUILDFLAG(IS_TIZEN)
-#include "base/callback.h"
+#include "base/functional/callback_forward.h"
 #endif
 
 namespace cc {
index 64092f0..2451abb 100644 (file)
@@ -2261,7 +2261,7 @@ bool FindTextFeaturesForClass(const blink::WebElement& element,
                               const char* const features[],
                               size_t number_of_features) {
   DCHECK(features);
-
+#if !defined(EWK_BRINGUP)
   for (unsigned i = 0; i < element.AttributeCount(); ++i) {
     std::string filtered_value =
         base::ToLowerASCII(element.AttributeValue(i).Utf8());
@@ -2274,6 +2274,7 @@ bool FindTextFeaturesForClass(const blink::WebElement& element,
         return true;
     }
   }
+#endif
   return false;
 }
 
index dcb2b2d..6f4c40c 100644 (file)
@@ -1132,7 +1132,8 @@ void PersonalDataManager::
 #if defined(TIZEN_AUTOFILL)
   // TODO(djmix.kim) : This is a temporary solution for tct.
   // It will be removed after integrating autofill_profile_validator_factory.
-  database_helper_->GetLocalDatabase()->RemoveAutofillProfile(guid);
+  database_helper_->GetLocalDatabase()->RemoveAutofillProfile(
+      guid, AutofillProfile::Source::kLocalOrSyncable);
 #else
   RemoveProfileFromDB(guid);
 #endif
index ffa554e..d50aff4 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "base/notreached.h"
 #include "base/sanitizer_buildflags.h"
+#include "base/strings/string_piece.h"
 #include "build/branding_buildflags.h"
 #include "build/build_config.h"
 #include "components/version_info/channel.h"
@@ -27,19 +28,19 @@ const std::string GetProductNameAndVersionForReducedUserAgent(
     const std::string& build_version);
 
 // Returns the product name, e.g. "Chromium" or "Google Chrome".
-constexpr std::string GetProductName() {
+constexpr base::StringPiece GetProductName() {
   return PRODUCT_NAME;
 }
 
 // Returns the version number, e.g. "6.0.490.1".
-constexpr std::string GetVersionNumber() {
+constexpr base::StringPiece GetVersionNumber() {
   return PRODUCT_VERSION;
 }
 
 // Returns the product name and version information for the User-Agent header,
 // in the format: Chrome/<major_version>.<minor_version>.<build>.<patch>.
-constexpr std::string GetProductNameAndVersionForUserAgent() {
-  return "Chrome/" + GetVersionNumber();
+constexpr base::StringPiece GetProductNameAndVersionForUserAgent() {
+  return "Chrome/" PRODUCT_VERSION;
 }
 
 // Returns the major component (aka the milestone) of the version as an int,
@@ -53,7 +54,7 @@ std::string GetMajorVersionNumber();
 const base::Version& GetVersion();
 
 // Returns a version control specific identifier of this release.
-constexpr std::string GetLastChange() {
+constexpr base::StringPiece GetLastChange() {
   return LAST_CHANGE;
 }
 
@@ -65,7 +66,7 @@ constexpr bool IsOfficialBuild() {
 }
 
 // Returns the OS type, e.g. "Windows", "Linux", "FreeBSD", ...
-constexpr std::string GetOSType() {
+constexpr base::StringPiece GetOSType() {
 #if BUILDFLAG(IS_WIN)
   return "Windows";
 #elif BUILDFLAG(IS_IOS)
@@ -97,7 +98,7 @@ constexpr std::string GetOSType() {
 
 // Returns a string equivalent of |channel|, independent of whether the build
 // is branded or not and without any additional modifiers.
-constexpr std::string GetChannelString(Channel channel) {
+constexpr base::StringPiece GetChannelString(Channel channel) {
   switch (channel) {
     case Channel::STABLE:
       return "stable";
@@ -114,7 +115,7 @@ constexpr std::string GetChannelString(Channel channel) {
 }
 
 // Returns a list of sanitizers enabled in this build.
-constexpr std::string GetSanitizerList() {
+constexpr base::StringPiece GetSanitizerList() {
   return ""
 #if defined(ADDRESS_SANITIZER)
          "address "
index aff25f2..d14603f 100644 (file)
@@ -2650,9 +2650,6 @@ source_set("browser") {
     # Not Mac.
     deps += [ "//sandbox" ]
   }
-  if (is_tizen) {
-    deps -= [ "//content/browser/tracing:resources" ]
-  }
 
   # Desktop/Window/WebContents screen capture implementations, conditionally
   # built depending on the available implementations for each platform.
@@ -2794,7 +2791,7 @@ source_set("browser") {
     ]
   }
 
-  if (is_android || is_linux || is_chromeos) {
+  if (is_android || is_linux || is_chromeos || is_tizen) {
     deps += [ "//content/browser/system_dns_resolution" ]
   }
 
index 58a4c65..c32cd7e 100644 (file)
 #include "content/browser/date_time_chooser_efl.h"
 #endif
 
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
 #include "tizen_src/chromium_impl/components/xwalk_extensions/browser/xwalk_extension_manager.h"
 #endif
 
@@ -1346,7 +1346,7 @@ void PopulateDedicatedWorkerBinders(DedicatedWorkerHost* host,
       host->GetAncestorRenderFrameHostId(),
       RenderProcessHost::NotificationServiceCreatorType::kDedicatedWorker,
       host));
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
   map->Add<wrt::mojom::XWalkExtensionBrowser>(base::BindRepeating(
       &wrt::XWalkExtensionManager::Bind));
 #endif
index ba71cf0..a2ef864 100644 (file)
@@ -10465,6 +10465,10 @@ RenderFrameHostImpl::UpdateAXFocusDeferScope::~UpdateAXFocusDeferScope() {
 
 BrowserAccessibilityManager*
 RenderFrameHostImpl::GetOrCreateBrowserAccessibilityManager() {
+#if defined(EWK_BRINGUP)
+  LOG(ERROR) << " Need to enable BrowserAccessibilityManager for Tizen";
+  return nullptr;
+#endif
   // Never create a BrowserAccessibilityManager unless needed for the AXMode.
   // At least basic mode is required; it contains kWebContents and KNativeAPIs.
   ui::AXMode accessibility_mode = delegate_->GetAccessibilityMode();
index daf7584..346f4a0 100644 (file)
@@ -17,6 +17,10 @@ namespace content {
 
 // static
 TtsPlatform* TtsPlatform::GetInstance() {
+#if defined(EWK_BRINGUP)
+  LOG(ERROR) << " Need to enable tts for Tizen";
+  return nullptr;
+#endif
 #if !defined(NO_CONTENT_CLIENT)
   TtsPlatform* result = GetContentClient()->browser()->GetTtsPlatform();
   if (result)
index c34ba7a..1f18a12 100644 (file)
@@ -4,7 +4,7 @@
 
 import("//build/buildflag_header.gni")
 
-if (is_android || is_linux || is_chromeos) {
+if (is_android || is_linux || is_chromeos || is_tizen) {
   # //net/dns "friends" this target (so these source files can include private
   # headers from //net/dns).
   source_set("system_dns_resolution") {
index e1ecfc3..36f5e18 100644 (file)
@@ -4749,6 +4749,7 @@ void WebContentsImpl::AccessibilityLocationChangesReceived(
 std::string WebContentsImpl::DumpAccessibilityTree(
     bool internal,
     std::vector<ui::AXPropertyFilter> property_filters) {
+#if !defined(EWK_BRINGUP)
   OPTIONAL_TRACE_EVENT0("content", "WebContentsImpl::DumpAccessibilityTree");
   auto* ax_mgr = GetOrCreateRootBrowserAccessibilityManager();
   // Since for Web Content we get the AXTree updates through the renderer at a
@@ -4772,11 +4773,18 @@ std::string WebContentsImpl::DumpAccessibilityTree(
 
   formatter->SetPropertyFilters(property_filters);
   return formatter->Format(ax_mgr->GetBrowserAccessibilityRoot());
+#else
+  return " ";
+#endif
 }
 
 void WebContentsImpl::RecordAccessibilityEvents(
     bool start_recording,
     absl::optional<ui::AXEventCallback> callback) {
+#if defined(EWK_BRINGUP)
+  LOG(ERROR) << " Need to enable for Tizen";
+  return;
+#else
   OPTIONAL_TRACE_EVENT0("content",
                         "WebContentsImpl::RecordAccessibilityEvents");
 
@@ -4800,6 +4808,7 @@ void WebContentsImpl::RecordAccessibilityEvents(
       event_recorder_.reset(nullptr);
     }
   }
+#endif
 }
 
 device::mojom::GeolocationContext* WebContentsImpl::GetGeolocationContext() {
index 5113b58..2abb501 100644 (file)
@@ -255,6 +255,7 @@ int32_t PepperVideoDecoderHost::OnHostMsgInitialize(
       uint32_t shim_texture_pool_size = media::limits::kMaxVideoFrames + 1;
       shim_texture_pool_size =
           std::max(shim_texture_pool_size, min_picture_count_);
+#if !defined(EWK_BRINGUP)
       auto new_decoder = VideoDecoderShim::Create(this, shim_texture_pool_size,
                                                   /*use_hw_decoder=*/true);
       if (new_decoder &&
@@ -265,6 +266,7 @@ int32_t PepperVideoDecoderHost::OnHostMsgInitialize(
         mojo_video_decoder_path_initialized_ = true;
         return PP_OK;
       }
+#endif
     }
     decoder_.reset();
     if (acceleration == PP_HARDWAREACCELERATION_ONLY)
index 08c98c6..bfb7368 100644 (file)
@@ -203,7 +203,10 @@ class NSSInitSingleton {
     ScopedAllowBlockingForNSS allow_blocking;
 
     EnsureNSPRInit();
-
+#if BUILDFLAG(IS_TIZEN)
+    LOG(INFO) << " Tizen 8.0 platform NSS library version is 3.34 and open "
+                 "source expects 3.35 or higher";
+#else
     // We *must* have NSS >= 3.35 at compile time.
     static_assert((NSS_VMAJOR == 3 && NSS_VMINOR >= 35) || (NSS_VMAJOR > 3),
                   "nss version check failed");
@@ -215,6 +218,7 @@ class NSSInitSingleton {
                     "still get this error, contact your distribution "
                     "maintainer.";
     }
+#endif
 
     SECStatus status = SECFailure;
     base::FilePath database_dir = GetInitialConfigDirectory();
index 8731312..269e5d6 100644 (file)
@@ -5,7 +5,7 @@
 #include "gpu/ipc/common/gpu_memory_buffer_impl_native_pixmap.h"
 
 #if BUILDFLAG(IS_TIZEN)
-#include "third_party/vulkan-deps/vulkan-headers/src/include/vulkan/vulkan.h"
+#include "third_party/swiftshader/include/vulkan/vulkan.h"
 #else
 #include <vulkan/vulkan.h>
 #endif
index e72e475..f6754c5 100644 (file)
@@ -7,7 +7,7 @@
 
 #include "build/build_config.h"
 #if BUILDFLAG(IS_TIZEN)
-#include "third_party/vulkan-deps/vulkan-headers/src/include/vulkan/vulkan_core.h"
+#include "third_party/swiftshader/include/vulkan/vulkan_core.h"
 #else
 #include <vulkan/vulkan_core.h>
 #endif
index 32e4af0..244e2a7 100644 (file)
@@ -93,10 +93,10 @@ enum VideoPixelFormat {
 
 // Please update UMA histogram enumeration when adding new formats here.
 #if BUILDFLAG(IS_TIZEN)
-  PIXEL_FORMAT_ENCODED = 39,  // encoded pixels, 1 plane
+  PIXEL_FORMAT_ENCODED = 40,  // encoded pixels, 1 plane
 #if defined(TIZEN_TBM_SUPPORT)
-  PIXEL_FORMAT_TBM_SURFACE = 40,
-  PIXEL_FORMAT_TBM_INTER_PROCESS_BUFFER = 41,
+  PIXEL_FORMAT_TBM_SURFACE = 41,
+  PIXEL_FORMAT_TBM_INTER_PROCESS_BUFFER = 42,
   PIXEL_FORMAT_MAX = PIXEL_FORMAT_TBM_INTER_PROCESS_BUFFER,
 #else
   PIXEL_FORMAT_MAX =
index cfcb7fa..457fde6 100644 (file)
@@ -7,13 +7,13 @@ import("//media/gpu/args.gni")
 
 source_set("sandbox") {
   sources = []
-  if (is_linux || is_chromeos_ash) {
+  if (is_linux || is_chromeos_ash || is_tizen) {
     sources += [
       "hardware_video_decoding_sandbox_hook_linux.cc",
       "hardware_video_decoding_sandbox_hook_linux.h",
     ]
   }
-  if (is_linux || is_chromeos) {
+  if (is_linux || is_chromeos || is_tizen) {
     sources += [
       "hardware_video_encoding_sandbox_hook_linux.cc",
       "hardware_video_encoding_sandbox_hook_linux.h",
index 81067a9..d14cc48 100644 (file)
@@ -104,7 +104,7 @@ mojom("mojom") {
   }
 
   enabled_features = []
-  if (is_linux || is_chromeos) {
+  if (is_linux || is_chromeos || is_tizen) {
     enabled_features += [ "is_linux_or_chromeos" ]
   }
 
index 6415212..83ece0b 100644 (file)
@@ -132,7 +132,7 @@ component("services") {
         [ "//chromeos/components/cdm_factory_daemon:cdm_factory_daemon_gpu" ]
   }
 
-  if (is_linux || is_chromeos) {
+  if (is_linux || is_chromeos || is_tizen) {
     sources += [
       "mojo_video_encode_accelerator_provider_factory.cc",
       "mojo_video_encode_accelerator_provider_factory.h",
index 4752026..6fa886f 100644 (file)
@@ -1227,7 +1227,7 @@ component("net") {
     ]
   }
 
-  if (is_linux) {
+  if (is_linux || is_tizen) {
     sources += [
       "base/address_map_cache_linux.cc",
       "base/address_map_cache_linux.h",
@@ -1360,7 +1360,7 @@ component("net") {
     }
   }
 
-  if (is_android || is_chromeos || is_linux) {
+  if (is_android || is_chromeos || is_linux || is_tizen) {
     sources += [
       "base/network_change_notifier_passive.cc",
       "base/network_change_notifier_passive.h",
index 892877d..ee71dd2 100644 (file)
@@ -3117,7 +3117,9 @@ QuicChromiumClientSession::CreateContextForMultiPortPath() {
 
 void QuicChromiumClientSession::MigrateToMultiPortPath(
     std::unique_ptr<quic::QuicPathValidationContext> context) {
+#if !defined(EWK_BRINGUP)
   DCHECK_NE(nullptr, context);
+#endif
   auto* chrome_context =
       static_cast<QuicChromiumPathValidationContext*>(context.get());
   std::unique_ptr<QuicChromiumPacketWriter> owned_writer =
index 314abc0..f1eacb5 100755 (executable)
@@ -2,9 +2,9 @@ Name: chromium-efl
 Summary: Chromium EFL
 # Version: {TPK_VERSION}.{INTERNAL_API_REVISION}.{CHROMIUM_MAJOR_VERSION}
 # The {INTERNAL_API_REVISION} is used for compatibility check with wrtjs.
-Version: 1.1.108
+Version: 1.1.114
 # Set by ./tizen_src/scripts/update_chromium_version.sh
-%define upstream_chromium_version 108.0.5359.1
+%define upstream_chromium_version 114.0.5735.31
 Release: 1
 # The 'Group' should be specified as one of the following valid group list.
 # https://wiki.tizen.org/wiki/Packaging/Guidelines#Group_Tag
@@ -276,7 +276,7 @@ BuildRequires: pkgconfig(capi-ui-inputmethod)
 %endif
 
 %define __enable_ewk_interface 1
-
+%define __enable_wrt_js 0
 # Enable to support squashfs RPM and image by default
 %define __enable_squashfs_image 1
 %if "%{?profile}" == "tv" && "%{_vd_cfg_chip_vendor}" == "EMUL"
@@ -691,7 +691,7 @@ install -m 0644 %{_libdir}/libscl-common.so        "%{buildroot}"%{_libdir}
   install -m 0755 "%{OUTPUT_FOLDER}"/libminigbm.so "%{buildroot}"%{_libdir}
 %else
   install -m 0644 "%{OUTPUT_FOLDER}"/locales/efl/*.pak  "%{buildroot}"%{CHROMIUM_LIB_DIR}/bin/locales/
-
+  install -m 0755 "%{OUTPUT_FOLDER}"/libtest_trace_processor.so "%{buildroot}"%{_libdir}
   install -m 0755 "%{OUTPUT_FOLDER}"/efl_webprocess    "%{buildroot}"%{_bindir}/
   %if "%{?profile}" == "tv"
   ln -s efl_webprocess "%{buildroot}"%{_bindir}/efl_pluginprocess
@@ -1074,6 +1074,7 @@ rm -rf %{CHROMIUM_TPK_DIR}/%{_tpk_file_name}.tpk
   %{_libdir}/libminigbm.so
 %else
   %{_libdir}/libchromium-ewk.so
+  %{_libdir}/libtest_trace_processor.so
   %{_libdir}/libewebkit2.so*
   %if 0%{?__enable_squashfs_image}
     %if "%{?tizen_profile_name}" == "tv"
index 9e36bde..b4381e2 100644 (file)
@@ -15,7 +15,9 @@ namespace proxy {
 
 namespace {
 
-std::unique_ptr<base::Value> ValueFromVarArray(const PP_Var& var) {
+std::unique_ptr<base::Value::List> ValueFromVarArray(const PP_Var& var) {
+#if !defined(EWK_BRINGUP)
+  LOG(ERROR) << " Remove EWK_BRINGUP ";
   if (var.type == PP_VARTYPE_ARRAY) {
     scoped_refptr<ArrayVar> array =
         scoped_refptr<ArrayVar>(ArrayVar::FromPPVar(var));
@@ -29,11 +31,13 @@ std::unique_ptr<base::Value> ValueFromVarArray(const PP_Var& var) {
     }
     return std::move(ret);
   }
-
-  return std::make_unique<base::Value>();
+#endif
+  return std::make_unique<base::Value::List>();
 }
 
-std::unique_ptr<base::Value> ValueFromVarDictionary(const PP_Var& var) {
+std::unique_ptr<base::Value::Dict> ValueFromVarDictionary(const PP_Var& var) {
+#if !defined(EWK_BRINGUP)
+  LOG(ERROR) << " Remove EWK_BRINGUP ";
   if (var.type == PP_VARTYPE_DICTIONARY) {
     scoped_refptr<DictionaryVar> dict =
         scoped_refptr<DictionaryVar>(DictionaryVar::FromPPVar(var));
@@ -64,11 +68,13 @@ std::unique_ptr<base::Value> ValueFromVarDictionary(const PP_Var& var) {
     }
     return std::move(ret);
   }
-
-  return std::make_unique<base::Value>();
+#endif
+  return std::make_unique<base::Value::Dict>();
 }
 
 ScopedPPVar VarFromValueArray(const base::Value* value) {
+#if !defined(EWK_BRINGUP)
+  LOG(ERROR) << " Remove EWK_BRINGUP ";
   if (!value)
     return ScopedPPVar();
 
@@ -86,11 +92,13 @@ ScopedPPVar VarFromValueArray(const base::Value* value) {
 
     return ScopedPPVar(ScopedPPVar::PassRef(), ret->GetPPVar());
   }
-
+#endif
   return ScopedPPVar();
 }
 
 ScopedPPVar VarFromValueDictionary(const base::Value* value) {
+#if !defined(EWK_BRINGUP)
+  LOG(ERROR) << " Remove EWK_BRINGUP ";
   if (!value)
     return ScopedPPVar();
 
@@ -108,13 +116,15 @@ ScopedPPVar VarFromValueDictionary(const base::Value* value) {
     }
     return ScopedPPVar(ScopedPPVar::PassRef(), ret->GetPPVar());
   }
-
+#endif
   return ScopedPPVar();
 }
 
 }  // namespace
 
 std::unique_ptr<base::Value> ValueFromVar(const PP_Var& var) {
+#if !defined(EWK_BRINGUP)
+  LOG(ERROR) << " Remove EWK_BRINGUP ";
   switch (var.type) {
     case PP_VARTYPE_BOOL:
       return std::make_unique<base::Value>(PP_ToBool(var.value.as_bool));
@@ -135,9 +145,13 @@ std::unique_ptr<base::Value> ValueFromVar(const PP_Var& var) {
     default:
       return std::make_unique<base::Value>();
   }
+#endif
+  return std::make_unique<base::Value>();
 }
 
 ScopedPPVar VarFromValue(const base::Value* value) {
+#if !defined(EWK_BRINGUP)
+  LOG(ERROR) << " Remove EWK_BRINGUP ";
   if (!value)
     return ScopedPPVar();
 
@@ -165,6 +179,8 @@ ScopedPPVar VarFromValue(const base::Value* value) {
     default:
       return ScopedPPVar();
   }
+#endif
+  return ScopedPPVar();
 }
 
 }  // namespace proxy
index 30942aa..3a01a78 100644 (file)
@@ -17,7 +17,7 @@ declare_args() {
 
   compile_credentials = is_linux || is_chromeos || is_tizen
 
-  compile_syscall_broker = is_linux || is_chromeos
+  compile_syscall_broker = is_linux || is_chromeos || is_tizen
 
   # On Android, use plain GTest.
   use_base_test_suite = is_linux || is_chromeos
index c52d70d..a997575 100644 (file)
@@ -73,7 +73,7 @@ component("policy") {
       "linux/sandbox_seccomp_bpf_linux.cc",
       "linux/sandbox_seccomp_bpf_linux.h",
     ]
-    if (is_linux || is_chromeos_ash) {
+    if (is_linux || is_chromeos_ash || is_tizen) {
       sources += [
         "linux/bpf_hardware_video_decoding_policy_linux.cc",
         "linux/bpf_hardware_video_decoding_policy_linux.h",
index b30fc01..675817e 100644 (file)
@@ -4,7 +4,9 @@
 
 #include "sandbox/policy/linux/bpf_hardware_video_decoding_policy_linux.h"
 
+#if BUILDFLAG(IS_TIZEN_TV)
 #include <linux/kcmp.h>
+#endif
 
 #include "media/gpu/buildflags.h"
 #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
@@ -103,6 +105,7 @@ ResultExpr HardwareVideoDecodingProcessPolicy::EvaluateSyscallForVaapiOnAMD(
       return Allow();
     case __NR_sched_setaffinity:
       return RestrictSchedTarget(GetPolicyPid(), system_call_number);
+#if BUILDFLAG(IS_TIZEN_TV)
     case __NR_kcmp: {
       const Arg<pid_t> pid1(0);
       const Arg<pid_t> pid2(1);
@@ -114,6 +117,7 @@ ResultExpr HardwareVideoDecodingProcessPolicy::EvaluateSyscallForVaapiOnAMD(
                 Allow())
           .Else(Error(EPERM));
     }
+#endif
   }
 
   auto* sandbox_linux = SandboxLinux::GetInstance();
index 482f5a9..bffeaf9 100644 (file)
 #include <linux/net.h>
 #include <linux/netlink.h>
 #include <linux/sockios.h>
+#include <sys/socket.h>
 #include <linux/wireless.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>
 #include <sys/inotify.h>
 #include <sys/mman.h>
-#include <sys/socket.h>
 #include <unistd.h>
 
 #include "base/feature_list.h"
index 9d83ed5..1702e1a 100644 (file)
@@ -24,7 +24,7 @@ mojom("mojom") {
   if (is_linux || is_chromeos || is_tizen) {
     enabled_features += [ "has_zygote" ]
   }
-  if (is_linux || is_chromeos) {
+  if (is_linux || is_chromeos || is_tizen) {
     enabled_features += [ "is_linux_or_chromeos" ]
   }
   if (is_linux || is_chromeos_ash || is_tizen) {
index 18ba879..0cbdac5 100644 (file)
@@ -270,7 +270,7 @@ component("network_service") {
     ]
   }
 
-  if (is_linux) {
+  if (is_linux || is_tizen) {
     sources += [
       "network_change_notifier_passive_factory.cc",
       "network_change_notifier_passive_factory.h",
index 6571018..9ed0d3a 100644 (file)
@@ -99,9 +99,10 @@ void NetworkChangeManager::OnNetworkInterfacesChanged(
   net::NetworkChangeNotifierPassive* notifier =
       static_cast<net::NetworkChangeNotifierPassive*>(
           network_change_notifier_.get());
-
+#if !defined(EWK_BRINGUP)
   notifier->GetAddressMapOwner()->GetAddressMapCacheLinux()->ApplyDiffs(
       change_params->address_map, change_params->online_links);
+#endif
 }
 #endif  // BUILDFLAG(IS_LINUX)
 
index 456c4be..55b8aae 100644 (file)
@@ -469,7 +469,7 @@ component("cpp_base") {
     sources += [ "transferable_directory_fuchsia.cc" ]
   }
 
-  if (is_linux) {
+  if (is_linux || is_tizen) {
     sources += [
       "network_interface_change_listener_mojom_traits.cc",
       "network_interface_change_listener_mojom_traits.h",
index 47c7743..1e38502 100644 (file)
@@ -460,11 +460,11 @@ mojom("url_loader_base") {
   }
 
   enabled_features = []
-  if (is_android || is_chromeos || is_linux) {
+  if (is_android || is_chromeos || is_linux || is_tizen) {
     enabled_features += [ "network_change_notifier_in_browser" ]
   }
 
-  if (is_linux) {
+  if (is_linux || is_tizen) {
     # TODO(crbug.com/1431866): Remove this once is_linux in the mojom IDL does
     # not include lacros.
     enabled_features += [ "use_network_interface_change_listener" ]
@@ -730,7 +730,7 @@ mojom("url_loader_base") {
     },
   ]
 
-  if (is_linux) {
+  if (is_linux || is_tizen) {
     cpp_typemaps += [
       {
         types = [
@@ -1377,7 +1377,7 @@ mojom("mojom") {
     }
   }
 
-  if (is_linux) {
+  if (is_linux || is_tizen) {
     # TODO(crbug.com/1431866): Remove this once is_linux in the mojom IDL does
     # not include lacros.
     enabled_features += [ "use_network_interface_change_listener" ]
index 519c249..bb33a0b 100644 (file)
@@ -134,7 +134,8 @@ SCTAuditingCache::MaybeGenerateReportEntry(
   }
   RecordSCTAuditingReportDeduplicatedMetrics(false);
 
-  report->set_user_agent(version_info::GetProductNameAndVersionForUserAgent());
+  report->set_user_agent(
+      std::string(version_info::GetProductNameAndVersionForUserAgent()));
 
   // Add `cache_key` to the dedupe cache. The cache value is not used.
   dedupe_cache_.Put(cache_key, true);
index d98dbb0..26f9b24 100644 (file)
@@ -3127,10 +3127,13 @@ void QuotaManagerImpl::DidGetTizenUnlimitedStoragePrivilege(
     int64_t usage,
     int64_t quota,
     bool policy_changed) {
-  if (policy_changed)
+  LOG(ERROR) << " Remove with EWK_BRINGUP ";
+  if (policy_changed) {
+#if !defined(EWK_BRINGUP)
     GetUsageAndQuota(StorageKey(url::Origin::Create(origin)),
                      StorageType::kTemporary, std::move(callback));
-  else
+#endif
+  } else
     std::move(callback).Run(status, usage, quota);
 }
 #endif
index b4a69a4..a250df2 100644 (file)
@@ -6,8 +6,8 @@
 
 #include <stddef.h>
 #include <unordered_set>
-
 #include "base/lazy_instance.h"
+#include "base/logging.h"
 #include "base/strings/string_util.h"
 #include "build/build_config.h"
 #include "media/media_buildflags.h"
@@ -204,10 +204,13 @@ bool MimeUtil::IsSupportedMimeType(const std::string& mime_type) const {
 #if BUILDFLAG(IS_TIZEN_TV)
 void MimeUtil::RegisterJavascriptPluginMimeTypes(
     const std::string& mime_types) {
+  LOG(ERROR) << " Remove EWK_BRINGUP ";
+#if !defined(EWK_BRINGUP)
   std::stringstream stream(mime_types);
   std::string mime_type;
   while (std::getline(stream, mime_type, ','))
     javascript_plugin_types_.insert(base::ToLowerASCII(mime_type));
+#endif
 }
 
 bool MimeUtil::IsSupportedJavascriptPluginMimeType(
index 4739db6..e97a2f3 100644 (file)
@@ -146,6 +146,8 @@ blink_modules_sources("xr") {
       "xr_camera.h",
       "xr_canvas_input_provider.cc",
       "xr_canvas_input_provider.h",
+      "xr_composition_layer.cc",
+      "xr_composition_layer.h",
       "xr_cpu_depth_information.cc",
       "xr_cpu_depth_information.h",
       "xr_cube_map.cc",
@@ -203,6 +205,8 @@ blink_modules_sources("xr") {
       "xr_plane_set.h",
       "xr_pose.cc",
       "xr_pose.h",
+      "xr_projection_layer.cc",
+      "xr_projection_layer.h",
       "xr_ray.cc",
       "xr_ray.h",
       "xr_reference_space.cc",
index 9088dbb..9a94eda 100644 (file)
@@ -3826,15 +3826,15 @@ void WebMediaPlayerImpl::WriteSplitHistogram(
     const T&... values) {
   std::string strkey = std::string(key);
 
-  if constexpr (Flags & kEncrypted) {
+  if (Flags & kEncrypted) {
     if (is_encrypted_)
       UmaFunction(strkey + ".EME", values...);
   }
 
-  if constexpr (Flags & kTotal)
+  if (Flags & kTotal)
     UmaFunction(strkey + ".All", values...);
 
-  if constexpr (Flags & kPlaybackType) {
+  if (Flags & kPlaybackType) {
     auto demuxer_type = GetDemuxerType();
     if (!demuxer_type.has_value())
       return;
index 284a77d..2af6e7e 100644 (file)
@@ -153,10 +153,10 @@ class PLATFORM_EXPORT AffineTransform {
     return result;
   }
 
-  [[nodiscard]] static constexpr AffineTransform MakeSkewX(double angle) {
+  [[nodiscard]] static AffineTransform MakeSkewX(double angle) {
     return AffineTransform(1, 0, std::tan(Deg2rad(angle)), 1, 0, 0);
   }
-  [[nodiscard]] static constexpr AffineTransform MakeSkewY(double angle) {
+  [[nodiscard]] static AffineTransform MakeSkewY(double angle) {
     return AffineTransform(1, std::tan(Deg2rad(angle)), 0, 1, 0, 0);
   }
   [[nodiscard]] static constexpr AffineTransform Translation(double x,
index a6c5b4c..330eef2 100644 (file)
@@ -8176,8 +8176,8 @@ VKAPI_ATTR void VKAPI_CALL vkCmdDecodeVideoKHR(
 
 
 #define VK_KHR_video_decode_h264 1
-#include "vk_video/vulkan_video_codec_h264std.h"
-#include "vk_video/vulkan_video_codec_h264std_decode.h"
+#include "third_party/swiftshader/include/vk_video/vulkan_video_codec_h264std.h"
+#include "third_party/swiftshader/include/vk_video/vulkan_video_codec_h264std_decode.h"
 #define VK_KHR_VIDEO_DECODE_H264_SPEC_VERSION 8
 #define VK_KHR_VIDEO_DECODE_H264_EXTENSION_NAME "VK_KHR_video_decode_h264"
 
@@ -9349,8 +9349,8 @@ typedef struct VkPhysicalDeviceShaderClockFeaturesKHR {
 
 
 #define VK_KHR_video_decode_h265 1
-#include "vk_video/vulkan_video_codec_h265std.h"
-#include "vk_video/vulkan_video_codec_h265std_decode.h"
+#include "third_party/swiftshader/include/vk_video/vulkan_video_codec_h265std.h"
+#include "third_party/swiftshader/include/vk_video/vulkan_video_codec_h265std_decode.h"
 #define VK_KHR_VIDEO_DECODE_H265_SPEC_VERSION 7
 #define VK_KHR_VIDEO_DECODE_H265_EXTENSION_NAME "VK_KHR_video_decode_h265"
 typedef struct VkVideoDecodeH265ProfileInfoKHR {
index 4a19c97..bcc1ab2 100644 (file)
@@ -32,6 +32,7 @@ config("tizen_default_include_dirs") {
     deps_include_path,
 
     # find / -name *.h -printf '%h\n' | sort --unique
+    "$deps_include_path/atk-1.0",
     "$deps_include_path/dbus-1.0",
     "$deps_include_path/ecore-1",
     "$deps_include_path/ecore-audio-1",
index 46cc294..16898d0 100644 (file)
@@ -72,9 +72,9 @@ declare_args() {
 }
 
 if (is_tizen) {
-  tizen_autofill = true
+  tizen_autofill = false
   if (tizen_product_tv) {
-    tizen_autofill_fw = true
+    tizen_autofill_fw = false
   }
 }
 
index 6bd2c23..4391c01 100755 (executable)
@@ -224,23 +224,24 @@ add_tizen_flags() {
   if [ "$tizen_product_tv" == "true" ]; then
     ADDITIONAL_GN_PARAMETERS+="enable_plugins=true
                                use_plugin_placeholder_hole=true
+                               use_atk=false
                               "
   fi
-  ADDITIONAL_GN_PARAMETERS+="tizen_multimedia=true
+  ADDITIONAL_GN_PARAMETERS+="tizen_multimedia=false
                              proprietary_codecs=true
-                             tizen_audio_io=true
-                             tizen_web_speech_recognition=true
-                             tizen_tbm_support=true
+                             tizen_audio_io=false
+                             tizen_web_speech_recognition=false
+                             tizen_tbm_support=false
                             "
 
   if [ "$tizen_product_tv" == "true" ]; then
-    ADDITIONAL_GN_PARAMETERS+="tizen_pepper_extensions=true
+    ADDITIONAL_GN_PARAMETERS+="tizen_pepper_extensions=false
                               "
   fi
 
   # Enable video hole only for standard and TV profile
   if [ \( "$tizen_product_tv" == "true" \) -o \( "$tizen_product_da" != "true" -a "$tizen_emulator_support" != "true" \) ]; then
-    ADDITIONAL_GN_PARAMETERS+="tizen_video_hole=true
+    ADDITIONAL_GN_PARAMETERS+="tizen_video_hole=false
                               "
   else
     ADDITIONAL_GN_PARAMETERS+="tizen_video_hole=false
index b039933..15893bb 100644 (file)
@@ -10,6 +10,7 @@
 #include "base/functional/callback.h"
 #include "base/memory/ref_counted.h"
 #include "base/memory/weak_ptr.h"
+#include "base/task/single_thread_task_runner.h"
 #include "base/threading/thread_checker.h"
 #include "services/device/public/cpp/generic_sensor/sensor_reading.h"
 #include "services/device/public/mojom/sensor.mojom.h"
index e331e81..e1357b1 100644 (file)
@@ -16,8 +16,13 @@ static double KilometerPerHourToMeterPerSecond(double kilometer_per_hour) {
 }
 
 LocationProviderEfl::LocationProviderEfl()
-    : location_manager_(nullptr),
-      task_runner_(base::SingleThreadTaskRunner::GetCurrentDefault()) {}
+    : location_manager_(nullptr)
+#if !defined(EWK_BRINGUP)
+      ,
+      task_runner_(base::SingleThreadTaskRunner::GetCurrentDefault())
+#endif
+{
+}
 
 LocationProviderEfl::~LocationProviderEfl() {
   StopProvider();
@@ -40,8 +45,10 @@ void LocationProviderEfl::GeoPositionChangedCb(double latitude,
                                            timestamp);
 }
 void LocationProviderEfl::NotifyCallback(const mojom::Geoposition& position) {
+#if !defined(EWK_BRINGUP)
   if (!callback_.is_null())
     callback_.Run(this, position);
+#endif
 }
 
 void LocationProviderEfl::SetUpdateCallback(
@@ -56,6 +63,7 @@ void LocationProviderEfl::NotifyPositionChanged(double latitude,
                                                 double direction,
                                                 double horizontal_accuracy,
                                                 time_t timestamp) {
+#if !defined(EWK_BRINGUP)
   DCHECK(location_manager_);
   DCHECK(task_runner_);
 
@@ -74,6 +82,7 @@ void LocationProviderEfl::NotifyPositionChanged(double latitude,
       base::BindOnce(&LocationProviderEfl::NotifyCallback,
                      base::Unretained(this), last_position_);
   task_runner_->PostTask(FROM_HERE, std::move(task));
+#endif
 }
 
 void LocationProviderEfl::StartProvider(bool high_accuracy) {
@@ -119,7 +128,7 @@ void LocationProviderEfl::StopProvider() {
   location_manager_ = nullptr;
 }
 
-const mojom::Geoposition& LocationProviderEfl::GetPosition() {
+const mojom::GeopositionResult* LocationProviderEfl::GetPosition() {
   return last_position_;
 }
 
index 5616c1b..e8745c9 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "base/compiler_specific.h"
 #include "base/memory/ptr_util.h"
+#include "base/task/single_thread_task_runner.h"
 #include "services/device/geolocation/geolocation_provider.h"
 #include "services/device/public/cpp/geolocation/geoposition.h"
 #include "services/device/public/cpp/geolocation/location_provider.h"
@@ -24,7 +25,7 @@ class LocationProviderEfl : public LocationProvider {
       const LocationProviderUpdateCallback& callback) override;
   void StartProvider(bool high_accuracy) override;
   void StopProvider() override;
-  const mojom::Geoposition& GetPosition() override;
+  const mojom::GeopositionResult* GetPosition() override;
 
   void OnPermissionGranted() override;
 
@@ -44,9 +45,11 @@ class LocationProviderEfl : public LocationProvider {
   NotifyPositionChanged(double, double, double, double, double, double, time_t);
   void NotifyCallback(const mojom::Geoposition&);
 
-  mojom::Geoposition last_position_;
+  mojom::GeopositionResult* last_position_;
   location_manager_h location_manager_;
+#if !defined(EWK_BRINGUP)
   scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+#endif
   LocationProviderUpdateCallback callback_;
 };
 
index 0e7ae35..86b368a 100644 (file)
 
 #if BUILDFLAG(IS_TIZEN)
 #include <vconf.h>
-
+#if BUILDFLAG(IS_TIZEN_TV)
 #include "components/xwalk_extensions/browser/xwalk_extension_manager.h"
 #endif
+#endif
 
 #include "private/ewk_notification_private.h"
 
@@ -647,7 +648,7 @@ void ContentBrowserClientEfl::ExposeInterfacesToRenderer(
           switches::kXWalkExtensionPath)) {
     return;
   }
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
   registry->AddInterface(
       base::BindRepeating(&wrt::XWalkExtensionManager::Bind),
       content::GetUIThreadTaskRunner({}));
index 57d6011..f02c068 100644 (file)
@@ -18,7 +18,7 @@
 #include "renderer/content_renderer_client_efl.h"
 #include "ui/base/resource/resource_bundle.h"
 
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && BUILDFLAG(IS_TIZEN_TV)
 #include "components/xwalk_extensions/browser/xwalk_extension_manager.h"
 #endif
 
@@ -98,7 +98,7 @@ void ContentMainDelegateEfl::PreSandboxStartupBrowser() {
   // needed for gpu thread
   content::RegisterGpuMainThreadFactory(CreateInProcessGpuThread);
 
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
   // switches::kXWalkExtensionPath SHOULD be set before MainDelegate init.
   auto extension_path =
       base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
index 277de37..a3d13d5 100644 (file)
@@ -3211,7 +3211,9 @@ void EWebView::DrawLabel(Evas_Object* image, Eina_Rectangle rect) {
 }
 
 void EWebView::DeactivateAtk(bool deactivated) {
+#if defined(TIZEN_ATK_SUPPORT)
   EWebAccessibilityUtil::GetInstance()->Deactivate(deactivated);
+#endif
 }
 
 void EWebView::ClearLabels() {
@@ -3445,7 +3447,9 @@ void EWebView::UpdateAccessibilityStatus(Eina_Bool enable) {
 }
 
 void EWebView::InitAtk() {
+#if defined(TIZEN_ATK_SUPPORT)
   EWebAccessibilityUtil::GetInstance()->ToggleAtk(lazy_initialize_atk_);
+#endif
 }
 
 /* LCOV_EXCL_START */
index 110de26..47fff4d 100644 (file)
@@ -9,9 +9,10 @@
 
 #if BUILDFLAG(IS_TIZEN)
 #include <vconf/vconf.h>
-
+#if BUILDFLAG(IS_TIZEN_TV)
 #include "components/xwalk_extensions/renderer/xwalk_extension_renderer_controller.h"
 #endif
+#endif
 
 #include "base/command_line.h"
 #include "base/path_service.h"
@@ -170,7 +171,7 @@ void ContentRendererClientEfl::RenderThreadStarted() {
   if (!command_line.HasSwitch(switches::kSingleProcess))
     LocaleEfl::Initialize();
 
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
   if (command_line.HasSwitch(switches::kXWalkExtensionPath)) {
     wrt::XWalkExtensionRendererController::GetInstance().SetPrivilegeChecker(
         base::BindRepeating([]() -> bool {
@@ -271,7 +272,7 @@ void ContentRendererClientEfl::DidCreateScriptContext(
     content::RenderFrame* render_frame,
     v8::Handle<v8::Context> context,
     int world_id) {
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
   if (ShouldRegisterXWalkExtension(world_id))
     wrt::XWalkExtensionRendererController::DidCreateScriptContext(context);
 #endif
@@ -303,7 +304,7 @@ void ContentRendererClientEfl::WillReleaseScriptContext(
     blink::WebFrame* frame,
     v8::Handle<v8::Context> context,
     int world_id) {
-#if BUILDFLAG(IS_TIZEN)
+#if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
   if (ShouldRegisterXWalkExtension(world_id))
     wrt::XWalkExtensionRendererController::WillReleaseScriptContext(context);
 #endif
index 7ff6ccb..af6c4b1 100644 (file)
@@ -158,14 +158,14 @@ std::unique_ptr<Palette> GeneratePalette(SkColor seed_color,
       break;
     case SchemeVariant::kVibrant: {
       const auto hues =
-          std::to_array<double>({0, 41, 61, 101, 131, 181, 251, 301, 360});
+          std::array<double, 9>({0, 41, 61, 101, 131, 181, 251, 301, 360});
       const auto secondary_rotations =
-          std::to_array<double>({18, 15, 10, 12, 15, 18, 15, 12, 12});
+          std::array<double, 9>({18, 15, 10, 12, 15, 18, 15, 12, 12});
       const base::flat_map<double, double> secondary_hues_to_rotations =
           Zip(hues, secondary_rotations);
 
       const auto tertiary_rotations =
-          std::to_array<double>({35, 30, 20, 25, 30, 35, 30, 25, 25});
+          std::array<double, 9>({35, 30, 20, 25, 30, 35, 30, 25, 25});
       const base::flat_map<double, double> tertiary_hues_to_rotations =
           Zip(hues, tertiary_rotations);
 
@@ -181,14 +181,14 @@ std::unique_ptr<Palette> GeneratePalette(SkColor seed_color,
       break;
     case SchemeVariant::kExpressive: {
       const auto hues =
-          std::to_array<double>({0, 21, 51, 121, 151, 191, 271, 321, 360});
+          std::array<double, 9>({0, 21, 51, 121, 151, 191, 271, 321, 360});
       const auto secondary_rotations =
-          std::to_array<double>({45, 95, 45, 20, 45, 90, 45, 45, 45});
+          std::array<double, 9>({45, 95, 45, 20, 45, 90, 45, 45, 45});
       const base::flat_map<double, double> secondary_hues_to_rotations =
           Zip(hues, secondary_rotations);
 
       const auto tertiary_rotations =
-          std::to_array<double>({120, 120, 20, 45, 20, 15, 20, 120, 120});
+          std::array<double, 9>({120, 120, 20, 45, 20, 15, 20, 120, 120});
       const base::flat_map<double, double> tertiary_hues_to_rotations =
           Zip(hues, tertiary_rotations);
       config = {Transform(120.0, 40.0),
index e0e6c89..ecc6980 100644 (file)
@@ -13,7 +13,7 @@
 
 #if BUILDFLAG(IS_TIZEN)
 #include "third_party/angle/src/gpu_info_util/SystemInfo.h"
-#include "third_party/vulkan-deps/vulkan-headers/src/include/vulkan/vulkan_core.h"
+#include "third_party/swiftshader/include/vulkan/vulkan_core.h"
 #elif BUILDFLAG(IS_LINUX)
 #include <vulkan/vulkan_core.h>
 #include "third_party/angle/src/gpu_info_util/SystemInfo.h"  // nogncheck
index a9b6bb5..fdffe6a 100644 (file)
@@ -62,7 +62,8 @@ declare_args() {
   # Lite mode disables a number of performance optimizations to reduce memory
   # at the cost of performance.
   # Sets -DV8_LITE_MODE.
-  v8_enable_lite_mode = false
+  # FIXME(bringup m114): need to disable for tizen after resolving linker error
+  v8_enable_lite_mode = true
 
   # Enable the Turbofan compiler.
   # Sets -dV8_ENABLE_TURBOFAN.
index 6ad962c..e02501a 100644 (file)
@@ -517,7 +517,7 @@ class V8_NODISCARD V8_EXPORT_PRIVATE CurrentHeapBrokerScope {
   JSHeapBroker* const prev_broker_;
 };
 #else
-class V8_NODISCARD V8_EXPORT_PRIVATE CurrentHeapBrokerScope {
+class V8_EXPORT_PRIVATE CurrentHeapBrokerScope {
  public:
   explicit CurrentHeapBrokerScope(JSHeapBroker* broker) {}
   ~CurrentHeapBrokerScope() {}