mirror of
https://github.com/termux/termux-packages.git
synced 2025-11-01 14:58:55 +00:00
1373 lines
47 KiB
Diff
1373 lines
47 KiB
Diff
From ad7b4ee246c9bff21b03296a15daff6ce27e3b1c Mon Sep 17 00:00:00 2001
|
|
From: Chongyun Lee <licy183@termux.dev>
|
|
Date: Sat, 19 Apr 2025 02:40:34 +0800
|
|
Subject: [PATCH] reland jumbo 11
|
|
|
|
Enable jumbo build for the following component(s)/source_set(s):
|
|
|
|
- //gpu/command_buffer/client:client_sources
|
|
- //gpu/command_buffer/client:gles2_c_lib
|
|
- //gpu/command_buffer/client:gles2_implementation
|
|
- //gpu/command_buffer/client:gles2_implementation_no_check
|
|
- //gpu/command_buffer/common:common_base_sources
|
|
- //gpu/command_buffer/common:common_sources
|
|
- //gpu/command_buffer/service:service_sources
|
|
- //gpu/config:config_sources
|
|
- //gpu/ipc/service:service
|
|
- //gpu/vulkan:vulkan
|
|
- //media/audio:audio
|
|
- //media/base/ipc:ipc
|
|
- //media/base:base
|
|
- //media/capture:capture_base
|
|
- //media/capture:capture_device_specific
|
|
- //media/capture:capture_lib
|
|
- //media/cast:common
|
|
- //media/cast:encoding
|
|
- //media/cast:sender
|
|
- //media/filters:filters
|
|
- //media/mojo/clients:clients
|
|
- //media/mojo/common:common
|
|
- //media/mojo/services:services
|
|
- //printing:metafile
|
|
- //services/cert_verifier/cert_net_url_loader:cert_net_url_loader
|
|
- //services/network/public/cpp:cpp
|
|
- //services/network/public/cpp:cpp_base
|
|
- //services/network/public/cpp:crash_keys
|
|
- //services/network/public/cpp:first_party_sets_mojom_support
|
|
- //services/network/public/cpp:ip_address_mojom_support
|
|
- //services/network/public/cpp:web_platform
|
|
- //services/network:network_service
|
|
- //services/webnn:webnn_service
|
|
- //storage:browser
|
|
|
|
---
|
|
gpu/BUILD.gn | 3 ++-
|
|
gpu/command_buffer/client/BUILD.gn | 9 ++++----
|
|
gpu/command_buffer/common/BUILD.gn | 3 ++-
|
|
gpu/command_buffer/service/BUILD.gn | 7 ++++---
|
|
gpu/command_buffer/service/graphite_utils.cc | 5 +++++
|
|
.../angle_vulkan_image_backing_factory.cc | 4 ++++
|
|
.../dawn_egl_image_representation.cc | 4 ++++
|
|
.../dawn_gl_texture_representation.cc | 4 ++++
|
|
.../shared_image/egl_image_backing_factory.cc | 4 ++++
|
|
.../gl_texture_image_backing_factory.cc | 4 ++++
|
|
.../ozone_image_backing_factory.cc | 4 ++++
|
|
.../shared_image_representation.cc | 3 +++
|
|
.../wrapped_graphite_texture_backing.cc | 6 ++++++
|
|
.../wrapped_sk_image_backing_factory.cc | 4 ++++
|
|
gpu/config/BUILD.gn | 3 ++-
|
|
gpu/config/webgpu_blocklist_impl.h | 3 +++
|
|
gpu/ipc/service/BUILD.gn | 3 ++-
|
|
gpu/vulkan/BUILD.gn | 3 ++-
|
|
media/audio/BUILD.gn | 3 ++-
|
|
media/audio/fake_audio_manager.cc | 6 ++++++
|
|
media/audio/pulse/audio_manager_pulse.cc | 6 ++++++
|
|
media/base/BUILD.gn | 5 ++++-
|
|
media/base/android/BUILD.gn | 3 ++-
|
|
media/base/ipc/BUILD.gn | 4 +++-
|
|
media/base/mac/BUILD.gn | 4 +++-
|
|
media/base/win/BUILD.gn | 4 +++-
|
|
media/capture/BUILD.gn | 7 ++++---
|
|
media/cast/BUILD.gn | 7 ++++---
|
|
media/cast/encoding/av1_encoder.cc | 20 ++++++++++++++++++
|
|
media/cast/encoding/vpx_encoder.cc | 21 +++++++++++++++++++
|
|
media/cast/sender/audio_sender.cc | 6 ++++++
|
|
media/cast/sender/openscreen_frame_sender.cc | 4 ++++
|
|
media/cast/sender/video_sender.cc | 6 ++++++
|
|
media/filters/BUILD.gn | 3 ++-
|
|
.../h264_to_annex_b_bitstream_converter.cc | 8 +++++++
|
|
.../h265_to_annex_b_bitstream_converter.cc | 8 +++++++
|
|
media/filters/media_file_checker.cc | 4 ++++
|
|
media/media_options.gni | 6 +++++-
|
|
media/mojo/clients/BUILD.gn | 4 +++-
|
|
media/mojo/common/BUILD.gn | 4 +++-
|
|
media/mojo/services/BUILD.gn | 3 ++-
|
|
printing/BUILD.gn | 3 ++-
|
|
.../cert_net_url_loader/BUILD.gn | 3 ++-
|
|
services/network/BUILD.gn | 5 +++--
|
|
.../http_server_properties_pref_delegate.cc | 4 ++++
|
|
.../known_legacy_scope_domains_delegate.cc | 4 ++++
|
|
services/network/public/cpp/BUILD.gn | 17 +++++++++------
|
|
.../cross_origin_embedder_policy_parser.cc | 8 +++++++
|
|
.../cpp/document_isolation_policy_parser.cc | 8 +++++++
|
|
services/network/url_loader.cc | 4 ++++
|
|
.../web_bundle_url_loader_factory.cc | 4 ++++
|
|
.../frame_timing_details_mojom_traits.cc | 4 ++++
|
|
services/webnn/BUILD.gn | 3 ++-
|
|
storage/browser/BUILD.gn | 5 +++--
|
|
54 files changed, 252 insertions(+), 42 deletions(-)
|
|
|
|
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn
|
|
index 0d5e199c75..fd91eb30c7 100644
|
|
--- a/gpu/BUILD.gn
|
|
+++ b/gpu/BUILD.gn
|
|
@@ -3,6 +3,7 @@
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/config/cronet/config.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/ui.gni")
|
|
import("//gpu/vulkan/features.gni")
|
|
import("//skia/features.gni")
|
|
@@ -70,7 +71,7 @@ component("webgpu") {
|
|
public_deps = [ "//gpu/command_buffer/client:webgpu_sources" ]
|
|
}
|
|
|
|
-static_library("test_support") {
|
|
+jumbo_static_library("test_support") {
|
|
testonly = true
|
|
sources = [
|
|
"command_buffer/client/client_test_helper.cc",
|
|
diff --git a/gpu/command_buffer/client/BUILD.gn b/gpu/command_buffer/client/BUILD.gn
|
|
index ee29b28e53..1165606bab 100644
|
|
--- a/gpu/command_buffer/client/BUILD.gn
|
|
+++ b/gpu/command_buffer/client/BUILD.gn
|
|
@@ -2,6 +2,7 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/ozone.gni")
|
|
import("//skia/features.gni")
|
|
import("//ui/gl/features.gni")
|
|
@@ -51,7 +52,7 @@ source_set("export") {
|
|
sources = [ "gpu_command_buffer_client_export.h" ]
|
|
}
|
|
|
|
-source_set("client_sources") {
|
|
+jumbo_source_set("client_sources") {
|
|
# External code should depend on this via //gpu/client above rather than
|
|
# depending on this directly or the component build will break.
|
|
visibility = [ ":client" ]
|
|
@@ -232,7 +233,7 @@ source_set("webgpu_interface") {
|
|
}
|
|
|
|
# Library emulates GLES2 using command_buffers.
|
|
-component("gles2_implementation") {
|
|
+jumbo_component("gles2_implementation") {
|
|
sources = gles2_implementation_source_files
|
|
|
|
defines = [ "GLES2_IMPL_IMPLEMENTATION" ]
|
|
@@ -329,7 +330,7 @@ source_set("webgpu_sources") {
|
|
}
|
|
|
|
# Library emulates GLES2 using command_buffers.
|
|
-component("gles2_implementation_no_check") {
|
|
+jumbo_component("gles2_implementation_no_check") {
|
|
sources = gles2_implementation_source_files
|
|
|
|
defines = [ "GLES2_IMPL_IMPLEMENTATION" ]
|
|
@@ -353,7 +354,7 @@ component("gles2_implementation_no_check") {
|
|
]
|
|
}
|
|
|
|
-component("gles2_c_lib") {
|
|
+jumbo_component("gles2_c_lib") {
|
|
sources = gles2_c_lib_source_files
|
|
defines = [ "GLES2_C_LIB_IMPLEMENTATION" ]
|
|
|
|
diff --git a/gpu/command_buffer/common/BUILD.gn b/gpu/command_buffer/common/BUILD.gn
|
|
index bf9b43d7f1..0514195413 100644
|
|
--- a/gpu/command_buffer/common/BUILD.gn
|
|
+++ b/gpu/command_buffer/common/BUILD.gn
|
|
@@ -7,6 +7,7 @@
|
|
# non-component build. This needs to match the GYP build which was likely an
|
|
# attempt to make larger components to help with loading.
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
import("//ui/gl/features.gni")
|
|
|
|
config("implementation") {
|
|
@@ -46,7 +47,7 @@ group("webgpu") {
|
|
public_deps = [ ":webgpu_sources" ]
|
|
}
|
|
|
|
-source_set("common_sources") {
|
|
+jumbo_source_set("common_sources") {
|
|
visibility = [ ":common" ]
|
|
|
|
sources = [
|
|
diff --git a/gpu/command_buffer/service/BUILD.gn b/gpu/command_buffer/service/BUILD.gn
|
|
index 34830c7aa5..1691a2bb6b 100644
|
|
--- a/gpu/command_buffer/service/BUILD.gn
|
|
+++ b/gpu/command_buffer/service/BUILD.gn
|
|
@@ -2,6 +2,7 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/ui.gni")
|
|
import("//gpu/vulkan/features.gni")
|
|
import("//skia/features.gni")
|
|
@@ -27,9 +28,9 @@ group("gles2") {
|
|
}
|
|
|
|
if (is_component_build) {
|
|
- link_target_type = "source_set"
|
|
+ link_target_type = "jumbo_source_set"
|
|
} else {
|
|
- link_target_type = "static_library"
|
|
+ link_target_type = "jumbo_static_library"
|
|
}
|
|
source_set("service_sources") {
|
|
# External code should depend on this via //gpu/command_buffer/service above
|
|
@@ -683,7 +684,7 @@ proto_library("disk_cache_proto") {
|
|
}
|
|
|
|
if (is_android) {
|
|
- static_library("android_texture_owner_test_support") {
|
|
+ jumbo_static_library("android_texture_owner_test_support") {
|
|
testonly = true
|
|
sources = [
|
|
"mock_texture_owner.cc",
|
|
diff --git a/gpu/command_buffer/service/graphite_utils.cc b/gpu/command_buffer/service/graphite_utils.cc
|
|
index f7518d6b59..05d4365d98 100644
|
|
--- a/gpu/command_buffer/service/graphite_utils.cc
|
|
+++ b/gpu/command_buffer/service/graphite_utils.cc
|
|
@@ -13,6 +13,8 @@
|
|
#include "third_party/skia/include/gpu/graphite/GraphiteTypes.h"
|
|
#include "third_party/skia/include/gpu/graphite/Surface.h"
|
|
|
|
+#define ReadPixelsContext ReadPixelsContext_GrahpiteUtils
|
|
+#define OnReadPixelsDone OnReadPixelsDone_GrahpiteUtils
|
|
namespace gpu {
|
|
namespace {
|
|
|
|
@@ -104,3 +106,6 @@ bool GraphiteReadPixelsSync(GraphiteSharedContext* context,
|
|
}
|
|
|
|
} // namespace gpu
|
|
+
|
|
+#undef ReadPixelsContext
|
|
+#undef OnReadPixelsDone
|
|
diff --git a/gpu/command_buffer/service/shared_image/angle_vulkan_image_backing_factory.cc b/gpu/command_buffer/service/shared_image/angle_vulkan_image_backing_factory.cc
|
|
index a1a43c9b34..9146a39148 100644
|
|
--- a/gpu/command_buffer/service/shared_image/angle_vulkan_image_backing_factory.cc
|
|
+++ b/gpu/command_buffer/service/shared_image/angle_vulkan_image_backing_factory.cc
|
|
@@ -14,6 +14,8 @@
|
|
#include "gpu/vulkan/vulkan_implementation.h"
|
|
#include "ui/gl/gl_surface_egl.h"
|
|
|
|
+#define kSupportedUsage kSupportedUsage_AngleVulkanImageBackingFactory
|
|
+
|
|
namespace gpu {
|
|
namespace {
|
|
|
|
@@ -181,3 +183,5 @@ SharedImageBackingType AngleVulkanImageBackingFactory::GetBackingType() {
|
|
}
|
|
|
|
} // namespace gpu
|
|
+
|
|
+#undef kSupportedUsage
|
|
diff --git a/gpu/command_buffer/service/shared_image/dawn_egl_image_representation.cc b/gpu/command_buffer/service/shared_image/dawn_egl_image_representation.cc
|
|
index 5c74a473eb..01e28e9c27 100644
|
|
--- a/gpu/command_buffer/service/shared_image/dawn_egl_image_representation.cc
|
|
+++ b/gpu/command_buffer/service/shared_image/dawn_egl_image_representation.cc
|
|
@@ -10,6 +10,8 @@
|
|
|
|
#include <dawn/native/OpenGLBackend.h>
|
|
|
|
+#define ToSharedImageAccessGLMode ToSharedImageAccessGLMode_DawnEGLImage
|
|
+
|
|
namespace {
|
|
GLenum ToSharedImageAccessGLMode(wgpu::TextureUsage usage) {
|
|
if (usage &
|
|
@@ -107,3 +109,5 @@ void DawnEGLImageRepresentation::EndAccess() {
|
|
}
|
|
|
|
} // namespace gpu
|
|
+
|
|
+#undef ToSharedImageAccessGLMode
|
|
diff --git a/gpu/command_buffer/service/shared_image/dawn_gl_texture_representation.cc b/gpu/command_buffer/service/shared_image/dawn_gl_texture_representation.cc
|
|
index 1bd77ff1e1..af9d74bf32 100644
|
|
--- a/gpu/command_buffer/service/shared_image/dawn_gl_texture_representation.cc
|
|
+++ b/gpu/command_buffer/service/shared_image/dawn_gl_texture_representation.cc
|
|
@@ -11,6 +11,8 @@
|
|
#include "gpu/command_buffer/service/texture_manager.h"
|
|
#include "gpu/config/gpu_finch_features.h"
|
|
|
|
+#define ToSharedImageAccessGLMode ToSharedImageAccessGLMode_DawnGLTexture
|
|
+
|
|
namespace {
|
|
GLenum ToSharedImageAccessGLMode(wgpu::TextureUsage usage) {
|
|
if (usage &
|
|
@@ -100,3 +102,5 @@ void DawnGLTextureRepresentation::EndAccess() {
|
|
}
|
|
|
|
} // namespace gpu
|
|
+
|
|
+#undef ToSharedImageAccessGLMode
|
|
diff --git a/gpu/command_buffer/service/shared_image/egl_image_backing_factory.cc b/gpu/command_buffer/service/shared_image/egl_image_backing_factory.cc
|
|
index 5f43307619..581a31bf5f 100644
|
|
--- a/gpu/command_buffer/service/shared_image/egl_image_backing_factory.cc
|
|
+++ b/gpu/command_buffer/service/shared_image/egl_image_backing_factory.cc
|
|
@@ -19,6 +19,8 @@
|
|
#include "ui/gl/gl_implementation.h"
|
|
#include "ui/gl/shared_gl_fence_egl.h"
|
|
|
|
+#define kSupportedUsage kSupportedUsage_EGLImageBackingFactory
|
|
+
|
|
namespace gpu {
|
|
namespace {
|
|
|
|
@@ -169,3 +171,5 @@ SharedImageBackingType EGLImageBackingFactory::GetBackingType() {
|
|
}
|
|
|
|
} // namespace gpu
|
|
+
|
|
+#undef kSupportedUsage
|
|
diff --git a/gpu/command_buffer/service/shared_image/gl_texture_image_backing_factory.cc b/gpu/command_buffer/service/shared_image/gl_texture_image_backing_factory.cc
|
|
index 546b9c0e11..740d89d506 100644
|
|
--- a/gpu/command_buffer/service/shared_image/gl_texture_image_backing_factory.cc
|
|
+++ b/gpu/command_buffer/service/shared_image/gl_texture_image_backing_factory.cc
|
|
@@ -17,6 +17,8 @@
|
|
#include "ui/gl/gl_implementation.h"
|
|
#include "ui/gl/progress_reporter.h"
|
|
|
|
+#define kSupportedUsage kSupportedUsage_GLTextureImageBackingFactory
|
|
+
|
|
namespace gpu {
|
|
namespace {
|
|
|
|
@@ -229,3 +231,5 @@ SharedImageBackingType GLTextureImageBackingFactory::GetBackingType() {
|
|
}
|
|
|
|
} // namespace gpu
|
|
+
|
|
+#undef kSupportedUsage
|
|
diff --git a/gpu/command_buffer/service/shared_image/ozone_image_backing_factory.cc b/gpu/command_buffer/service/shared_image/ozone_image_backing_factory.cc
|
|
index 16ce3e2a79..ed9a7109c9 100644
|
|
--- a/gpu/command_buffer/service/shared_image/ozone_image_backing_factory.cc
|
|
+++ b/gpu/command_buffer/service/shared_image/ozone_image_backing_factory.cc
|
|
@@ -35,6 +35,8 @@
|
|
#include "gpu/vulkan/vulkan_device_queue.h"
|
|
#endif // BUILDFLAG(ENABLE_VULKAN)
|
|
|
|
+#define kSupportedUsage kSupportedUsage_OzoneImageBackingFactory
|
|
+
|
|
namespace gpu {
|
|
namespace {
|
|
|
|
@@ -414,3 +416,5 @@ SharedImageBackingType OzoneImageBackingFactory::GetBackingType() {
|
|
}
|
|
|
|
} // namespace gpu
|
|
+
|
|
+#undef kSupportedUsage
|
|
diff --git a/gpu/command_buffer/service/shared_image/shared_image_representation.cc b/gpu/command_buffer/service/shared_image/shared_image_representation.cc
|
|
index dc53451bb2..1b81ab938b 100644
|
|
--- a/gpu/command_buffer/service/shared_image/shared_image_representation.cc
|
|
+++ b/gpu/command_buffer/service/shared_image/shared_image_representation.cc
|
|
@@ -34,6 +34,9 @@
|
|
#include "ui/gfx/win/d3d_shared_fence.h"
|
|
#endif
|
|
|
|
+// Macro 'None' from X11/X.h will cause confliction
|
|
+#undef None
|
|
+
|
|
namespace gpu {
|
|
|
|
namespace {
|
|
diff --git a/gpu/command_buffer/service/shared_image/wrapped_graphite_texture_backing.cc b/gpu/command_buffer/service/shared_image/wrapped_graphite_texture_backing.cc
|
|
index b835e11e2f..4e169678f1 100644
|
|
--- a/gpu/command_buffer/service/shared_image/wrapped_graphite_texture_backing.cc
|
|
+++ b/gpu/command_buffer/service/shared_image/wrapped_graphite_texture_backing.cc
|
|
@@ -33,6 +33,9 @@
|
|
#include "gpu/command_buffer/service/shared_image/dawn_fallback_image_representation.h"
|
|
#endif
|
|
|
|
+#define ReadPixelsContext ReadPixelsContext_WrappedGrahpiteTextureBacking
|
|
+#define OnReadPixelsDone OnReadPixelsDone_WrappedGrahpiteTextureBacking
|
|
+
|
|
namespace gpu {
|
|
namespace {
|
|
using GraphiteTextureHolder = SkiaImageRepresentation::GraphiteTextureHolder;
|
|
@@ -427,3 +430,6 @@ WrappedGraphiteTextureBacking::ProduceDawn(
|
|
#endif // BUILDFLAG(SKIA_USE_DAWN)
|
|
|
|
} // namespace gpu
|
|
+
|
|
+#undef ReadPixelsContext
|
|
+#undef OnReadPixelsDone
|
|
diff --git a/gpu/command_buffer/service/shared_image/wrapped_sk_image_backing_factory.cc b/gpu/command_buffer/service/shared_image/wrapped_sk_image_backing_factory.cc
|
|
index 49387f6995..d714e55f22 100644
|
|
--- a/gpu/command_buffer/service/shared_image/wrapped_sk_image_backing_factory.cc
|
|
+++ b/gpu/command_buffer/service/shared_image/wrapped_sk_image_backing_factory.cc
|
|
@@ -25,6 +25,8 @@
|
|
#include "third_party/skia/include/gpu/ganesh/GrDirectContext.h"
|
|
#include "third_party/skia/include/gpu/ganesh/GrTypes.h"
|
|
|
|
+#define kSupportedUsage kSupportedUsage_WrappedSKImageBackingFactory
|
|
+
|
|
namespace gpu {
|
|
namespace {
|
|
// NOTE: WrappedSkImage cannot be used with raster-over-GLES2 as it doesn't
|
|
@@ -255,3 +257,5 @@ SharedImageBackingType WrappedSkImageBackingFactory::GetBackingType() {
|
|
}
|
|
|
|
} // namespace gpu
|
|
+
|
|
+#undef kSupportedUsage
|
|
diff --git a/gpu/config/BUILD.gn b/gpu/config/BUILD.gn
|
|
index f2a88f2e4e..ccdf665e20 100644
|
|
--- a/gpu/config/BUILD.gn
|
|
+++ b/gpu/config/BUILD.gn
|
|
@@ -4,6 +4,7 @@
|
|
|
|
import("//build/config/cast.gni")
|
|
import("//build/config/chrome_build.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/ui.gni")
|
|
import("//gpu/vulkan/features.gni")
|
|
import("//skia/features.gni")
|
|
@@ -90,7 +91,7 @@ source_set("webgpu_blocklist_impl") {
|
|
public_deps = [ "//third_party/dawn/include/dawn:cpp_headers" ]
|
|
}
|
|
|
|
-component("config") {
|
|
+jumbo_source_set("config") {
|
|
sources = [
|
|
"device_perf_info.cc",
|
|
"device_perf_info.h",
|
|
diff --git a/gpu/config/webgpu_blocklist_impl.h b/gpu/config/webgpu_blocklist_impl.h
|
|
index 870bf84ac0..a78a41f79a 100644
|
|
--- a/gpu/config/webgpu_blocklist_impl.h
|
|
+++ b/gpu/config/webgpu_blocklist_impl.h
|
|
@@ -5,6 +5,9 @@
|
|
#ifndef GPU_CONFIG_WEBGPU_BLOCKLIST_IMPL_H_
|
|
#define GPU_CONFIG_WEBGPU_BLOCKLIST_IMPL_H_
|
|
|
|
+// Macro 'None' from X11/X.h will cause confliction
|
|
+#undef None
|
|
+
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
diff --git a/gpu/ipc/service/BUILD.gn b/gpu/ipc/service/BUILD.gn
|
|
index 97e32dddd0..25a904dba7 100644
|
|
--- a/gpu/ipc/service/BUILD.gn
|
|
+++ b/gpu/ipc/service/BUILD.gn
|
|
@@ -2,6 +2,7 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/ui.gni")
|
|
import("//gpu/vulkan/features.gni")
|
|
import("//skia/features.gni")
|
|
@@ -16,7 +17,7 @@ declare_args() {
|
|
subpixel_font_rendering_disabled = false
|
|
}
|
|
|
|
-component("service") {
|
|
+jumbo_component("service") {
|
|
output_name = "gpu_ipc_service"
|
|
sources = [
|
|
"command_buffer_stub.cc",
|
|
diff --git a/gpu/vulkan/BUILD.gn b/gpu/vulkan/BUILD.gn
|
|
index 9b29e95794..83e3f530b2 100644
|
|
--- a/gpu/vulkan/BUILD.gn
|
|
+++ b/gpu/vulkan/BUILD.gn
|
|
@@ -4,6 +4,7 @@
|
|
|
|
import("//build/buildflag_header.gni")
|
|
import("//build/config/dcheck_always_on.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/ozone.gni")
|
|
import("//build/config/ui.gni")
|
|
import("//build_overrides/wayland.gni")
|
|
@@ -80,7 +81,7 @@ if (enable_vulkan) {
|
|
]
|
|
}
|
|
|
|
- component("vulkan") {
|
|
+ jumbo_component("vulkan") {
|
|
output_name = "vulkan_wrapper"
|
|
|
|
sources = [
|
|
diff --git a/media/audio/BUILD.gn b/media/audio/BUILD.gn
|
|
index 7bc2086976..fa3247de1f 100644
|
|
--- a/media/audio/BUILD.gn
|
|
+++ b/media/audio/BUILD.gn
|
|
@@ -2,6 +2,7 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/linux/pkg_config.gni")
|
|
import("//media/media_options.gni")
|
|
import("//testing/libfuzzer/fuzzer_test.gni")
|
|
@@ -25,7 +26,7 @@ config("platform_config") {
|
|
}
|
|
}
|
|
|
|
-source_set("audio") {
|
|
+jumbo_source_set("audio") {
|
|
# Do not expand the visibility here without double-checking with OWNERS, this
|
|
# is a roll-up target which is part of the //media component. Most other DEPs
|
|
# should be using //media and not directly DEP this roll-up target.
|
|
diff --git a/media/audio/fake_audio_manager.cc b/media/audio/fake_audio_manager.cc
|
|
index e6a9a6e534..726687267b 100644
|
|
--- a/media/audio/fake_audio_manager.cc
|
|
+++ b/media/audio/fake_audio_manager.cc
|
|
@@ -9,6 +9,9 @@
|
|
#include "media/base/audio_parameters.h"
|
|
#include "media/base/channel_layout.h"
|
|
|
|
+#define kDefaultSampleRate kDefaultSampleRate_Fake
|
|
+#define kDefaultInputBufferSize kDefaultInputBufferSize_Fake
|
|
+
|
|
namespace media {
|
|
|
|
namespace {
|
|
@@ -86,3 +89,6 @@ AudioParameters FakeAudioManager::GetInputStreamParameters(
|
|
}
|
|
|
|
} // namespace media
|
|
+
|
|
+#undef kDefaultSampleRate
|
|
+#undef kDefaultInputBufferSize
|
|
diff --git a/media/audio/pulse/audio_manager_pulse.cc b/media/audio/pulse/audio_manager_pulse.cc
|
|
index 8937e42da6..22c457d6d6 100644
|
|
--- a/media/audio/pulse/audio_manager_pulse.cc
|
|
+++ b/media/audio/pulse/audio_manager_pulse.cc
|
|
@@ -21,6 +21,9 @@
|
|
#include "media/base/audio_parameters.h"
|
|
#include "media/base/channel_layout.h"
|
|
|
|
+#define kDefaultSampleRate kDefaultSampleRate_Pulse
|
|
+#define kDefaultInputBufferSize kDefaultInputBufferSize_Pulse
|
|
+
|
|
namespace media {
|
|
|
|
using pulse::AutoPulseLock;
|
|
@@ -375,3 +378,6 @@ void AudioManagerPulse::DefaultSourceInfoCallback(pa_context* context,
|
|
}
|
|
|
|
} // namespace media
|
|
+
|
|
+#undef kDefaultSampleRate
|
|
+#undef kDefaultInputBufferSize
|
|
diff --git a/media/base/BUILD.gn b/media/base/BUILD.gn
|
|
index 8a6e445c97..cda5f864e9 100644
|
|
--- a/media/base/BUILD.gn
|
|
+++ b/media/base/BUILD.gn
|
|
@@ -5,6 +5,7 @@
|
|
import("//build/config/android/config.gni")
|
|
import("//build/config/arm.gni")
|
|
import("//build/config/features.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/linux/pkg_config.gni")
|
|
import("//build/config/ozone.gni")
|
|
import("//build/config/ui.gni")
|
|
@@ -15,7 +16,7 @@ if (is_android) {
|
|
import("//build/config/android/rules.gni")
|
|
}
|
|
|
|
-source_set("base") {
|
|
+jumbo_source_set("base") {
|
|
# Do not expand the visibility here without double-checking with OWNERS, this
|
|
# is a roll-up target which is part of the //media component. Most other DEPs
|
|
# should be using //media and not directly DEP this roll-up target.
|
|
@@ -462,6 +463,8 @@ source_set("base") {
|
|
"libaom_thread_wrapper.cc",
|
|
"libaom_thread_wrapper.h",
|
|
]
|
|
+ jumbo_excluded_sources = [ "libaom_thread_wrapper.cc"]
|
|
+
|
|
deps += [ "//third_party/libaom" ]
|
|
}
|
|
|
|
diff --git a/media/base/android/BUILD.gn b/media/base/android/BUILD.gn
|
|
index 91bf799509..3f4c35ff4f 100644
|
|
--- a/media/base/android/BUILD.gn
|
|
+++ b/media/base/android/BUILD.gn
|
|
@@ -4,6 +4,7 @@
|
|
|
|
import("//build/config/android/config.gni")
|
|
import("//build/config/arm.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/ui.gni")
|
|
import("//media/media_options.gni")
|
|
|
|
@@ -14,7 +15,7 @@ if (is_android) {
|
|
# This is bundled into //media, so all dependencies should be on //media.
|
|
# APK targets that depend on this indirectly, should also
|
|
# depend on :media_java to get the corresponding Java classes.
|
|
- source_set("android") {
|
|
+ jumbo_source_set("android") {
|
|
visibility = [
|
|
"//media",
|
|
"//media/filters",
|
|
diff --git a/media/base/ipc/BUILD.gn b/media/base/ipc/BUILD.gn
|
|
index e887c85d63..1a5ee54f7f 100644
|
|
--- a/media/base/ipc/BUILD.gn
|
|
+++ b/media/base/ipc/BUILD.gn
|
|
@@ -2,7 +2,9 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
-source_set("ipc") {
|
|
+import("//build/config/jumbo.gni")
|
|
+
|
|
+jumbo_source_set("ipc") {
|
|
sources = [
|
|
"media_param_traits.cc",
|
|
"media_param_traits.h",
|
|
diff --git a/media/base/mac/BUILD.gn b/media/base/mac/BUILD.gn
|
|
index 068aefecec..4c851aabf0 100644
|
|
--- a/media/base/mac/BUILD.gn
|
|
+++ b/media/base/mac/BUILD.gn
|
|
@@ -2,9 +2,11 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
+
|
|
assert(is_apple)
|
|
|
|
-source_set("mac") {
|
|
+jumbo_source_set("mac") {
|
|
# Note: This source_set is depended on only by //media. In the component
|
|
# build, if other component targets also depend on it, multiple copies of
|
|
# the ObjC classes declared in the files below will cause warnings at
|
|
diff --git a/media/base/win/BUILD.gn b/media/base/win/BUILD.gn
|
|
index d0637863ef..803f51d16f 100644
|
|
--- a/media/base/win/BUILD.gn
|
|
+++ b/media/base/win/BUILD.gn
|
|
@@ -2,6 +2,8 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
+
|
|
assert(is_win)
|
|
|
|
config("delay_load_mf") {
|
|
@@ -13,7 +15,7 @@ config("delay_load_mf") {
|
|
]
|
|
}
|
|
|
|
-source_set("media_foundation_util") {
|
|
+jumbo_component("media_foundation_util") {
|
|
sources = [
|
|
"dxgi_device_manager.cc",
|
|
"dxgi_device_manager.h",
|
|
diff --git a/media/capture/BUILD.gn b/media/capture/BUILD.gn
|
|
index e150aa2560..1d3c228c07 100644
|
|
--- a/media/capture/BUILD.gn
|
|
+++ b/media/capture/BUILD.gn
|
|
@@ -4,6 +4,7 @@
|
|
|
|
import("//build/config/apple/mobile_config.gni")
|
|
import("//build/config/features.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/ui.gni")
|
|
import("//media/media_options.gni")
|
|
import("//testing/test.gni")
|
|
@@ -33,7 +34,7 @@ component("capture_switches") {
|
|
}
|
|
|
|
# Things needed by //media/capture/mojom/video_capture_types.mojom.
|
|
-component("capture_base") {
|
|
+jumbo_component("capture_base") {
|
|
defines = [ "CAPTURE_IMPLEMENTATION" ]
|
|
sources = [
|
|
"capture_export.h",
|
|
@@ -55,7 +56,7 @@ component("capture_base") {
|
|
}
|
|
|
|
# Target which allows breakout of Android BUILD.gn files.
|
|
-source_set("capture_device_specific") {
|
|
+jumbo_source_set("capture_device_specific") {
|
|
visibility = [
|
|
":capture_lib",
|
|
"//media/capture/video/android",
|
|
@@ -116,7 +117,7 @@ source_set("capture_device_specific") {
|
|
]
|
|
}
|
|
|
|
-component("capture_lib") {
|
|
+jumbo_component("capture_lib") {
|
|
defines = [ "CAPTURE_IMPLEMENTATION" ]
|
|
sources = [
|
|
"video/create_video_capture_device_factory.cc",
|
|
diff --git a/media/cast/BUILD.gn b/media/cast/BUILD.gn
|
|
index 06cba8e764..143357fdbf 100644
|
|
--- a/media/cast/BUILD.gn
|
|
+++ b/media/cast/BUILD.gn
|
|
@@ -2,6 +2,7 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
import("//testing/libfuzzer/fuzzer_test.gni")
|
|
import("//testing/test.gni")
|
|
import("//third_party/libaom/options.gni")
|
|
@@ -12,7 +13,7 @@ proto_library("logging_proto") {
|
|
}
|
|
|
|
# Common code shared by all cast components.
|
|
-source_set("common") {
|
|
+jumbo_source_set("common") {
|
|
sources = [
|
|
"cast_callbacks.h",
|
|
"cast_config.cc",
|
|
@@ -67,7 +68,7 @@ source_set("common") {
|
|
]
|
|
}
|
|
|
|
-source_set("encoding") {
|
|
+jumbo_source_set("encoding") {
|
|
sources = [
|
|
"encoding/audio_encoder.cc",
|
|
"encoding/audio_encoder.h",
|
|
@@ -131,7 +132,7 @@ source_set("encoding") {
|
|
}
|
|
}
|
|
|
|
-source_set("sender") {
|
|
+jumbo_source_set("sender") {
|
|
sources = [
|
|
"sender/audio_sender.cc",
|
|
"sender/audio_sender.h",
|
|
diff --git a/media/cast/encoding/av1_encoder.cc b/media/cast/encoding/av1_encoder.cc
|
|
index ff08a9c0f3..7c327e3fc2 100644
|
|
--- a/media/cast/encoding/av1_encoder.cc
|
|
+++ b/media/cast/encoding/av1_encoder.cc
|
|
@@ -16,6 +16,16 @@
|
|
#include "third_party/libaom/source/libaom/aom/aomcx.h"
|
|
#include "third_party/openscreen/src/cast/streaming/public/encoded_frame.h"
|
|
|
|
+#define HasSufficientFeedback HasSufficientFeedback_AV1
|
|
+#define kRestartFramePeriods kRestartFramePeriods_AV1
|
|
+#define kEncodingSpeedAccHalfLife kEncodingSpeedAccHalfLife_AV1
|
|
+#define kHiTargetEncoderUtilization kHiTargetEncoderUtilization_AV1
|
|
+#define kMidTargetEncoderUtilization kMidTargetEncoderUtilization_AV1
|
|
+#define kLoTargetEncoderUtilization kLoTargetEncoderUtilization_AV1
|
|
+#define kEquivalentEncodingSpeedStepPerQpStep kEquivalentEncodingSpeedStepPerQpStep_AV1
|
|
+#define kHighestEncodingSpeed kHighestEncodingSpeed_AV1
|
|
+#define kLowestEncodingSpeed kLowestEncodingSpeed_AV1
|
|
+
|
|
namespace media {
|
|
namespace cast {
|
|
|
|
@@ -408,3 +418,13 @@ void Av1Encoder::GenerateKeyFrame() {
|
|
|
|
} // namespace cast
|
|
} // namespace media
|
|
+
|
|
+#undef HasSufficientFeedback
|
|
+#undef kRestartFramePeriods
|
|
+#undef kEncodingSpeedAccHalfLife
|
|
+#undef kHiTargetEncoderUtilization
|
|
+#undef kMidTargetEncoderUtilization
|
|
+#undef kLoTargetEncoderUtilization
|
|
+#undef kEquivalentEncodingSpeedStepPerQpStep
|
|
+#undef kHighestEncodingSpeed
|
|
+#undef kLowestEncodingSpeed
|
|
diff --git a/media/cast/encoding/vpx_encoder.cc b/media/cast/encoding/vpx_encoder.cc
|
|
index 7226784f07..a8339ecfb0 100644
|
|
--- a/media/cast/encoding/vpx_encoder.cc
|
|
+++ b/media/cast/encoding/vpx_encoder.cc
|
|
@@ -18,6 +18,16 @@
|
|
#include "third_party/libvpx/source/libvpx/vpx/vp8cx.h"
|
|
#include "third_party/openscreen/src/cast/streaming/public/encoded_frame.h"
|
|
|
|
+#define HasSufficientFeedback HasSufficientFeedback_VPX
|
|
+#define kRestartFramePeriods kRestartFramePeriods_VPX
|
|
+#define kEncodingSpeedAccHalfLife kEncodingSpeedAccHalfLife_VPX
|
|
+#define kHiTargetEncoderUtilization kHiTargetEncoderUtilization_VPX
|
|
+#define kMidTargetEncoderUtilization kMidTargetEncoderUtilization_VPX
|
|
+#define kLoTargetEncoderUtilization kLoTargetEncoderUtilization_VPX
|
|
+#define kEquivalentEncodingSpeedStepPerQpStep kEquivalentEncodingSpeedStepPerQpStep_VPX
|
|
+#define kHighestEncodingSpeed kHighestEncodingSpeed_VPX
|
|
+#define kLowestEncodingSpeed kLowestEncodingSpeed_VPX
|
|
+
|
|
namespace media {
|
|
namespace cast {
|
|
|
|
@@ -466,3 +476,14 @@ void VpxEncoder::GenerateKeyFrame() {
|
|
|
|
} // namespace cast
|
|
} // namespace media
|
|
+
|
|
+#undef HasSufficientFeedback
|
|
+#undef kEncodeSuffix
|
|
+#undef kRestartFramePeriods
|
|
+#undef kEncodingSpeedAccHalfLife
|
|
+#undef kHiTargetEncoderUtilization
|
|
+#undef kMidTargetEncoderUtilization
|
|
+#undef kLoTargetEncoderUtilization
|
|
+#undef kEquivalentEncodingSpeedStepPerQpStep
|
|
+#undef kHighestEncodingSpeed
|
|
+#undef kLowestEncodingSpeed
|
|
diff --git a/media/cast/sender/audio_sender.cc b/media/cast/sender/audio_sender.cc
|
|
index d96f2f5afb..f694bf347c 100644
|
|
--- a/media/cast/sender/audio_sender.cc
|
|
+++ b/media/cast/sender/audio_sender.cc
|
|
@@ -17,6 +17,9 @@
|
|
#include "media/cast/sender/frame_sender.h"
|
|
#include "third_party/openscreen/src/cast/streaming/public/sender.h"
|
|
|
|
+#define kHistogramDroppedFrames kHistogramDroppedFrames_AS
|
|
+#define kHistogramFrameDropped kHistogramFrameDropped_AS
|
|
+
|
|
namespace media::cast {
|
|
namespace {
|
|
|
|
@@ -145,3 +148,6 @@ void AudioSender::OnEncodedAudioFrame(
|
|
}
|
|
|
|
} // namespace media::cast
|
|
+
|
|
+#undef kHistogramDroppedFrames
|
|
+#undef kHistogramFrameDropped
|
|
diff --git a/media/cast/sender/openscreen_frame_sender.cc b/media/cast/sender/openscreen_frame_sender.cc
|
|
index 172c11caab..d9ab3453ee 100644
|
|
--- a/media/cast/sender/openscreen_frame_sender.cc
|
|
+++ b/media/cast/sender/openscreen_frame_sender.cc
|
|
@@ -22,6 +22,8 @@
|
|
#include "third_party/openscreen/src/cast/streaming/public/encoded_frame.h"
|
|
#include "third_party/perfetto/include/perfetto/tracing/track.h"
|
|
|
|
+#define kMaxFrameBurst kMaxFrameBurst_OFS
|
|
+
|
|
namespace media::cast {
|
|
namespace {
|
|
|
|
@@ -325,3 +327,5 @@ CastStreamingFrameDropReason OpenscreenFrameSender::ShouldDropNextFrame(
|
|
}
|
|
|
|
} // namespace media::cast
|
|
+
|
|
+#undef kMaxFrameBurst
|
|
diff --git a/media/cast/sender/video_sender.cc b/media/cast/sender/video_sender.cc
|
|
index 7acc0d64cd..de9ebe7549 100644
|
|
--- a/media/cast/sender/video_sender.cc
|
|
+++ b/media/cast/sender/video_sender.cc
|
|
@@ -28,6 +28,9 @@
|
|
#include "third_party/openscreen/src/cast/streaming/public/sender.h"
|
|
#include "third_party/perfetto/include/perfetto/tracing/track.h"
|
|
|
|
+#define kHistogramDroppedFrames kHistogramDroppedFrames_VS
|
|
+#define kHistogramFrameDropped kHistogramFrameDropped_VS
|
|
+
|
|
namespace media::cast {
|
|
|
|
namespace {
|
|
@@ -370,3 +373,6 @@ void VideoSender::OnEncodedVideoFrame(
|
|
}
|
|
|
|
} // namespace media::cast
|
|
+
|
|
+#undef kHistogramDroppedFrames
|
|
+#undef kHistogramFrameDropped
|
|
diff --git a/media/filters/BUILD.gn b/media/filters/BUILD.gn
|
|
index 9d0c99973c..5caa98792f 100644
|
|
--- a/media/filters/BUILD.gn
|
|
+++ b/media/filters/BUILD.gn
|
|
@@ -2,6 +2,7 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
import("//media/gpu/args.gni")
|
|
import("//media/media_options.gni")
|
|
|
|
@@ -19,7 +20,7 @@ if (media_use_symphonia) {
|
|
}
|
|
}
|
|
|
|
-source_set("filters") {
|
|
+jumbo_source_set("filters") {
|
|
# Do not expand the visibility here without double-checking with OWNERS, this
|
|
# is a roll-up target which is part of the //media component. Most other DEPs
|
|
# should be using //media and not directly DEP this roll-up target.
|
|
diff --git a/media/filters/h264_to_annex_b_bitstream_converter.cc b/media/filters/h264_to_annex_b_bitstream_converter.cc
|
|
index e98e2fdb23..ba498ea42d 100644
|
|
--- a/media/filters/h264_to_annex_b_bitstream_converter.cc
|
|
+++ b/media/filters/h264_to_annex_b_bitstream_converter.cc
|
|
@@ -15,6 +15,10 @@
|
|
#include "media/formats/mp4/box_definitions.h"
|
|
#include "media/parsers/h264_parser.h"
|
|
|
|
+#define kStartCodePrefix kStartCodePrefix_H264
|
|
+#define kParamSetStartCodeSize kParamSetStartCodeSize_H264
|
|
+#define IsAccessUnitBoundaryNal IsAccessUnitBoundaryNal_H264
|
|
+
|
|
namespace media {
|
|
|
|
static const uint8_t kStartCodePrefix[3] = {0, 0, 1};
|
|
@@ -302,3 +306,7 @@ bool H264ToAnnexBBitstreamConverter::WriteParamSet(
|
|
}
|
|
|
|
} // namespace media
|
|
+
|
|
+#undef kStartCodePrefix
|
|
+#undef kParamSetStartCodeSize
|
|
+#undef IsAccessUnitBoundaryNal
|
|
diff --git a/media/filters/h265_to_annex_b_bitstream_converter.cc b/media/filters/h265_to_annex_b_bitstream_converter.cc
|
|
index 9f2b1befd4..d63f7a13d3 100644
|
|
--- a/media/filters/h265_to_annex_b_bitstream_converter.cc
|
|
+++ b/media/filters/h265_to_annex_b_bitstream_converter.cc
|
|
@@ -16,6 +16,10 @@
|
|
#include "media/formats/mp4/hevc.h"
|
|
#include "media/parsers/h265_nalu_parser.h"
|
|
|
|
+#define kStartCodePrefix kStartCodePrefix_H265
|
|
+#define kParamSetStartCodeSize kParamSetStartCodeSize_H265
|
|
+#define IsAccessUnitBoundaryNal IsAccessUnitBoundaryNal_H265
|
|
+
|
|
namespace media {
|
|
namespace {
|
|
|
|
@@ -291,3 +295,7 @@ bool H265ToAnnexBBitstreamConverter::WriteParamSet(
|
|
}
|
|
|
|
} // namespace media
|
|
+
|
|
+#undef kStartCodePrefix
|
|
+#undef kParamSetStartCodeSize
|
|
+#undef IsAccessUnitBoundaryNal
|
|
diff --git a/media/filters/media_file_checker.cc b/media/filters/media_file_checker.cc
|
|
index 2e73f3b94e..52158ac426 100644
|
|
--- a/media/filters/media_file_checker.cc
|
|
+++ b/media/filters/media_file_checker.cc
|
|
@@ -22,6 +22,8 @@
|
|
#include "media/filters/ffmpeg_glue.h"
|
|
#include "media/filters/file_data_source.h"
|
|
|
|
+#define Decoder Decoder_MediaFileChecker
|
|
+
|
|
namespace media {
|
|
|
|
namespace {
|
|
@@ -119,3 +121,5 @@ bool MediaFileChecker::Start(base::TimeDelta check_time) {
|
|
}
|
|
|
|
} // namespace media
|
|
+
|
|
+#undef Decoder
|
|
diff --git a/media/media_options.gni b/media/media_options.gni
|
|
index 5f0318f651..c5cfcafb2c 100644
|
|
--- a/media/media_options.gni
|
|
+++ b/media/media_options.gni
|
|
@@ -6,6 +6,7 @@ import("//build/config/cast.gni")
|
|
import("//build/config/chrome_build.gni")
|
|
import("//build/config/chromeos/args.gni")
|
|
import("//build/config/features.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/ui.gni")
|
|
import("//media/gpu/args.gni")
|
|
import("//testing/libfuzzer/fuzzer_test.gni")
|
|
@@ -112,7 +113,7 @@ declare_args() {
|
|
# Enable logging override, e.g. enable DVLOGs through level 2 at build time.
|
|
# On Cast devices, these are logged as INFO.
|
|
# When enabled on Fuchsia, these are logged as VLOGs.
|
|
- enable_logging_override = is_cast_media_device
|
|
+ enable_logging_override = !use_jumbo_build && is_cast_media_device
|
|
|
|
enable_dav1d_decoder = use_blink
|
|
|
|
@@ -198,6 +199,9 @@ assert(!enable_hevc_parser_and_hw_decoder || enable_platform_hevc,
|
|
assert(!enable_platform_dolby_vision || enable_platform_hevc,
|
|
"enable_platform_hevc required for enable_platform_dolby_vision")
|
|
|
|
+# Logging override must not be enabled in jumbo builds.
|
|
+assert(!use_jumbo_build || !enable_logging_override)
|
|
+
|
|
# Use another declare_args() to pick up possible overrides of |use_cras|.
|
|
declare_args() {
|
|
# Enables runtime selection of PulseAudio library.
|
|
diff --git a/media/mojo/clients/BUILD.gn b/media/mojo/clients/BUILD.gn
|
|
index f334bb0de6..bca4dc198c 100644
|
|
--- a/media/mojo/clients/BUILD.gn
|
|
+++ b/media/mojo/clients/BUILD.gn
|
|
@@ -4,8 +4,10 @@
|
|
|
|
import("//media/media_options.gni")
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
+
|
|
# Implementations of media C++ interfaces using corresponding mojo services.
|
|
-source_set("clients") {
|
|
+jumbo_source_set("clients") {
|
|
visibility = [
|
|
":test_support",
|
|
"//chromecast/*",
|
|
diff --git a/media/mojo/common/BUILD.gn b/media/mojo/common/BUILD.gn
|
|
index 938e729435..ef6f59d320 100644
|
|
--- a/media/mojo/common/BUILD.gn
|
|
+++ b/media/mojo/common/BUILD.gn
|
|
@@ -2,7 +2,9 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
-source_set("common") {
|
|
+import("//build/config/jumbo.gni")
|
|
+
|
|
+jumbo_source_set("common") {
|
|
sources = [
|
|
"audio_data_s16_converter.cc",
|
|
"audio_data_s16_converter.h",
|
|
diff --git a/media/mojo/services/BUILD.gn b/media/mojo/services/BUILD.gn
|
|
index 9f54d77ef9..bb1bc62b6d 100644
|
|
--- a/media/mojo/services/BUILD.gn
|
|
+++ b/media/mojo/services/BUILD.gn
|
|
@@ -3,6 +3,7 @@
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/config/cast.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//media/gpu/args.gni")
|
|
import("//media/media_options.gni")
|
|
import("//mojo/public/tools/fuzzers/mojolpm.gni")
|
|
@@ -11,7 +12,7 @@ import("//testing/test.gni")
|
|
enable_playback_events_recorder =
|
|
enable_cast_receiver && (is_fuchsia || is_android)
|
|
|
|
-component("services") {
|
|
+jumbo_component("services") {
|
|
output_name = "media_mojo_services"
|
|
sources = [
|
|
"deferred_destroy_unique_receiver_set.h",
|
|
diff --git a/printing/BUILD.gn b/printing/BUILD.gn
|
|
index 4b7e4db74d..7f818601ec 100644
|
|
--- a/printing/BUILD.gn
|
|
+++ b/printing/BUILD.gn
|
|
@@ -3,6 +3,7 @@
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/config/features.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//build/config/linux/pkg_config.gni")
|
|
import("//build/config/sysroot.gni")
|
|
import("//build/config/ui.gni")
|
|
@@ -141,7 +142,7 @@ source_set("native_drawing_context") {
|
|
deps = [ "//base" ]
|
|
}
|
|
|
|
-component("metafile") {
|
|
+jumbo_component("metafile") {
|
|
sources = [
|
|
"metafile.cc",
|
|
"metafile.h",
|
|
diff --git a/services/cert_verifier/cert_net_url_loader/BUILD.gn b/services/cert_verifier/cert_net_url_loader/BUILD.gn
|
|
index ffc6bdc4ab..28ab85355d 100644
|
|
--- a/services/cert_verifier/cert_net_url_loader/BUILD.gn
|
|
+++ b/services/cert_verifier/cert_net_url_loader/BUILD.gn
|
|
@@ -2,10 +2,11 @@
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
+import("//build/config/jumbo.gni")
|
|
import("//crypto/features.gni")
|
|
import("//testing/test.gni")
|
|
|
|
-component("cert_net_url_loader") {
|
|
+jumbo_component("cert_net_url_loader") {
|
|
sources = [
|
|
"cert_net_fetcher_url_loader.cc",
|
|
"cert_net_fetcher_url_loader.h",
|
|
diff --git a/services/network/BUILD.gn b/services/network/BUILD.gn
|
|
index 7e605af85a..e3e0d7c7aa 100644
|
|
--- a/services/network/BUILD.gn
|
|
+++ b/services/network/BUILD.gn
|
|
@@ -3,12 +3,13 @@
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/config/features.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//mojo/public/tools/bindings/mojom.gni")
|
|
import("//net/features.gni")
|
|
import("//services/network/public/cpp/features.gni")
|
|
import("//testing/libfuzzer/fuzzer_test.gni")
|
|
|
|
-component("network_service") {
|
|
+jumbo_component("network_service") {
|
|
sources = [
|
|
"accept_ch_frame_interceptor.cc",
|
|
"accept_ch_frame_interceptor.h",
|
|
@@ -641,7 +642,7 @@ source_set("tests") {
|
|
configs += [ "//build/config/compiler:no_exit_time_destructors" ]
|
|
}
|
|
|
|
-source_set("test_support") {
|
|
+jumbo_source_set("test_support") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
diff --git a/services/network/http_server_properties_pref_delegate.cc b/services/network/http_server_properties_pref_delegate.cc
|
|
index 83541ae136..d70fbf6c78 100644
|
|
--- a/services/network/http_server_properties_pref_delegate.cc
|
|
+++ b/services/network/http_server_properties_pref_delegate.cc
|
|
@@ -10,6 +10,8 @@
|
|
#include "components/prefs/pref_registry_simple.h"
|
|
#include "components/prefs/pref_service.h"
|
|
|
|
+#define kPrefPath kPrefPath_HttpServerPropertiesPrefDelegate
|
|
+
|
|
const char kPrefPath[] = "net.http_server_properties";
|
|
|
|
namespace network {
|
|
@@ -58,3 +60,5 @@ void HttpServerPropertiesPrefDelegate::WaitForPrefLoad(
|
|
}
|
|
|
|
} // namespace network
|
|
+
|
|
+#undef kPrefPath
|
|
diff --git a/services/network/known_legacy_scope_domains_delegate.cc b/services/network/known_legacy_scope_domains_delegate.cc
|
|
index 188783cc42..7918267eee 100644
|
|
--- a/services/network/known_legacy_scope_domains_delegate.cc
|
|
+++ b/services/network/known_legacy_scope_domains_delegate.cc
|
|
@@ -10,6 +10,8 @@
|
|
#include "components/prefs/pref_registry_simple.h"
|
|
#include "components/prefs/pref_service.h"
|
|
|
|
+#define kPrefPath kPrefPath_KnownLegacyScopeDomainsPrefDelegate
|
|
+
|
|
namespace {
|
|
const std::string_view kPrefPath = "net.known_legacy_scope_domains";
|
|
} // namespace
|
|
@@ -65,3 +67,5 @@ bool KnownLegacyScopeDomainsPrefDelegate::IsPrefReady() {
|
|
}
|
|
|
|
} // namespace network
|
|
+
|
|
+#undef kPrefPath
|
|
diff --git a/services/network/public/cpp/BUILD.gn b/services/network/public/cpp/BUILD.gn
|
|
index a7ba27f22d..6a995cb58f 100644
|
|
--- a/services/network/public/cpp/BUILD.gn
|
|
+++ b/services/network/public/cpp/BUILD.gn
|
|
@@ -3,6 +3,7 @@
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/buildflag_header.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//mojo/public/tools/bindings/mojom.gni")
|
|
import("//net/features.gni")
|
|
import("//services/network/public/cpp/features.gni")
|
|
@@ -43,7 +44,7 @@ blink_python_runner("make_generated_permissions_policy_features") {
|
|
]
|
|
}
|
|
|
|
-component("crash_keys") {
|
|
+jumbo_component("crash_keys") {
|
|
sources = [
|
|
"crash_keys.cc",
|
|
"crash_keys.h",
|
|
@@ -53,7 +54,7 @@ component("crash_keys") {
|
|
defines = [ "IS_NETWORK_CPP_CRASH_KEYS_IMPL" ]
|
|
}
|
|
|
|
-component("cpp") {
|
|
+jumbo_component("cpp") {
|
|
output_name = "network_cpp"
|
|
|
|
sources = [
|
|
@@ -197,7 +198,7 @@ component("cpp") {
|
|
|
|
# These interfaces are put in their own target so that modules that only
|
|
# need to depend on mojom_ip_address does not depend on the entire cpp_base.
|
|
-component("ip_address_mojom_support") {
|
|
+jumbo_component("ip_address_mojom_support") {
|
|
sources = [
|
|
"address_family_mojom_traits.cc",
|
|
"address_family_mojom_traits.h",
|
|
@@ -384,7 +385,7 @@ component("is_potentially_trustworthy") {
|
|
defines = [ "IS_NETWORK_CPP_IS_POTENTIALLY_TRUSTWORTHY_IMPL" ]
|
|
}
|
|
|
|
-component("web_platform") {
|
|
+jumbo_component("web_platform") {
|
|
sources = [
|
|
"client_hints.cc",
|
|
"client_hints.h",
|
|
@@ -556,7 +557,7 @@ component("schemeful_site_mojom_support") {
|
|
|
|
# This component is separate from cpp_base as it is a dependency of
|
|
# //services/network/public/mojom:cookies_mojom.
|
|
-component("first_party_sets_mojom_support") {
|
|
+jumbo_component("first_party_sets_mojom_support") {
|
|
sources = [
|
|
"first_party_sets_mojom_traits.cc",
|
|
"first_party_sets_mojom_traits.h",
|
|
@@ -586,7 +587,7 @@ component("storage_access_api_mojom_support") {
|
|
defines = [ "IS_STORAGE_ACCESS_API_MOJOM_TRAITS_IMPL" ]
|
|
}
|
|
|
|
-component("cpp_base") {
|
|
+jumbo_component("cpp_base") {
|
|
output_name = "network_cpp_base"
|
|
|
|
sources = [
|
|
@@ -644,6 +645,7 @@ component("cpp_base") {
|
|
"web_transport_error_mojom_traits.cc",
|
|
"web_transport_error_mojom_traits.h",
|
|
]
|
|
+ jumbo_excluded_sources = []
|
|
|
|
configs += [ "//build/config/compiler:wexit_time_destructors" ]
|
|
|
|
@@ -690,6 +692,9 @@ component("cpp_base") {
|
|
"p2p_param_traits.h",
|
|
"p2p_socket_type.h",
|
|
]
|
|
+ jumbo_excluded_sources += [
|
|
+ "p2p_param_traits.cc",
|
|
+ ]
|
|
|
|
deps += [ "//services/network/public/mojom:mojom_shared" ]
|
|
public_deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
|
|
diff --git a/services/network/public/cpp/cross_origin_embedder_policy_parser.cc b/services/network/public/cpp/cross_origin_embedder_policy_parser.cc
|
|
index bf9d5f41d4..8aaaf8036d 100644
|
|
--- a/services/network/public/cpp/cross_origin_embedder_policy_parser.cc
|
|
+++ b/services/network/public/cpp/cross_origin_embedder_policy_parser.cc
|
|
@@ -13,6 +13,10 @@
|
|
#include "net/http/structured_headers.h"
|
|
#include "services/network/public/cpp/cross_origin_embedder_policy.h"
|
|
|
|
+#define kHeaderName kHeaderName_CrossOriginEmbedder
|
|
+#define kReportOnlyHeaderName kReportOnlyHeaderName_CrossOriginEmbedder
|
|
+#define Parse Parse_CrossOriginEmbedder
|
|
+
|
|
namespace network {
|
|
|
|
namespace {
|
|
@@ -76,3 +80,7 @@ CrossOriginEmbedderPolicy ParseCrossOriginEmbedderPolicy(
|
|
}
|
|
|
|
} // namespace network
|
|
+
|
|
+#undef kHeaderName
|
|
+#undef kReportOnlyHeaderName
|
|
+#undef Parse
|
|
diff --git a/services/network/public/cpp/document_isolation_policy_parser.cc b/services/network/public/cpp/document_isolation_policy_parser.cc
|
|
index b32b864b80..3407788fbe 100644
|
|
--- a/services/network/public/cpp/document_isolation_policy_parser.cc
|
|
+++ b/services/network/public/cpp/document_isolation_policy_parser.cc
|
|
@@ -13,6 +13,10 @@
|
|
#include "net/http/structured_headers.h"
|
|
#include "services/network/public/cpp/document_isolation_policy.h"
|
|
|
|
+#define kHeaderName kHeaderName_DocumentIsolation
|
|
+#define kReportOnlyHeaderName kReportOnlyHeaderName_DocumentIsolation
|
|
+#define Parse Parse_DocumentIsolation
|
|
+
|
|
namespace network {
|
|
|
|
namespace {
|
|
@@ -76,3 +80,7 @@ DocumentIsolationPolicy ParseDocumentIsolationPolicy(
|
|
}
|
|
|
|
} // namespace network
|
|
+
|
|
+#undef kHeaderName
|
|
+#undef kReportOnlyHeaderName
|
|
+#undef Parse
|
|
diff --git a/services/network/url_loader.cc b/services/network/url_loader.cc
|
|
index 7834c23474..cc79011f44 100644
|
|
--- a/services/network/url_loader.cc
|
|
+++ b/services/network/url_loader.cc
|
|
@@ -137,6 +137,8 @@
|
|
#include "third_party/abseil-cpp/absl/container/inlined_vector.h"
|
|
#include "url/origin.h"
|
|
|
|
+#define kBlockedBodyAllocationSize kBlockedBodyAllocationSize_URLLoader
|
|
+
|
|
namespace network {
|
|
|
|
namespace {
|
|
@@ -2644,3 +2646,5 @@ void URLLoader::MaybeCollectDurableMessage(size_t new_data_offset,
|
|
}
|
|
|
|
} // namespace network
|
|
+
|
|
+#undef kBlockedBodyAllocationSize
|
|
diff --git a/services/network/web_bundle/web_bundle_url_loader_factory.cc b/services/network/web_bundle/web_bundle_url_loader_factory.cc
|
|
index 517bfc4dde..f449c05251 100644
|
|
--- a/services/network/web_bundle/web_bundle_url_loader_factory.cc
|
|
+++ b/services/network/web_bundle/web_bundle_url_loader_factory.cc
|
|
@@ -36,6 +36,8 @@
|
|
#include "services/network/web_bundle/web_bundle_chunked_buffer.h"
|
|
#include "services/network/web_bundle/web_bundle_memory_quota_consumer.h"
|
|
|
|
+#define kBlockedBodyAllocationSize kBlockedBodyAllocationSize_WebBundleURLLoaderFactory
|
|
+
|
|
namespace network {
|
|
|
|
namespace {
|
|
@@ -984,3 +986,5 @@ void WebBundleURLLoaderFactory::OnWebBundleFetchFailed() {
|
|
}
|
|
|
|
} // namespace network
|
|
+
|
|
+#undef kBlockedBodyAllocationSize
|
|
diff --git a/services/viz/public/cpp/compositing/frame_timing_details_mojom_traits.cc b/services/viz/public/cpp/compositing/frame_timing_details_mojom_traits.cc
|
|
index 863c20cdd2..a77aa0f7fb 100644
|
|
--- a/services/viz/public/cpp/compositing/frame_timing_details_mojom_traits.cc
|
|
+++ b/services/viz/public/cpp/compositing/frame_timing_details_mojom_traits.cc
|
|
@@ -8,6 +8,8 @@
|
|
#include "ui/gfx/mojom/presentation_feedback_mojom_traits.h"
|
|
#include "ui/gfx/mojom/swap_timings_mojom_traits.h"
|
|
|
|
+#define Traits Traits_FrameTimingDetailsMojomTraits
|
|
+
|
|
namespace mojo {
|
|
|
|
using Traits = StructTraits<viz::mojom::FrameTimingDetailsDataView,
|
|
@@ -29,3 +31,5 @@ bool Traits::Read(viz::mojom::FrameTimingDetailsDataView data,
|
|
}
|
|
|
|
} // namespace mojo
|
|
+
|
|
+#undef Traits
|
|
diff --git a/services/webnn/BUILD.gn b/services/webnn/BUILD.gn
|
|
index a5fae96151..bac543d4cd 100644
|
|
--- a/services/webnn/BUILD.gn
|
|
+++ b/services/webnn/BUILD.gn
|
|
@@ -3,6 +3,7 @@
|
|
# found in the LICENSE file.
|
|
|
|
import("//build/buildflag_header.gni")
|
|
+import("//build/config/jumbo.gni")
|
|
import("//mojo/public/tools/fuzzers/mojolpm.gni")
|
|
import("//services/on_device_model/on_device_model.gni")
|
|
import("//services/webnn/features.gni")
|
|
@@ -29,7 +30,7 @@ source_set("webnn_switches") {
|
|
]
|
|
}
|
|
|
|
-component("webnn_service") {
|
|
+jumbo_component("webnn_service") {
|
|
defines = [ "IS_WEBNN_SERVICE_IMPL" ]
|
|
|
|
sources = [
|
|
diff --git a/storage/browser/BUILD.gn b/storage/browser/BUILD.gn
|
|
index 880d4b22f5..489e8783ce 100644
|
|
--- a/storage/browser/BUILD.gn
|
|
+++ b/storage/browser/BUILD.gn
|
|
@@ -1,10 +1,11 @@
|
|
# Copyright 2014 The Chromium Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
+import("//build/config/jumbo.gni")
|
|
import("//mojo/public/tools/bindings/mojom.gni")
|
|
import("//testing/test.gni")
|
|
|
|
-component("browser") {
|
|
+jumbo_component("browser") {
|
|
output_name = "storage_browser"
|
|
sources = [
|
|
"blob/blob_builder_from_stream.cc",
|
|
@@ -348,7 +349,7 @@ source_set("unittests") {
|
|
configs += [ "//build/config/compiler:no_exit_time_destructors" ]
|
|
}
|
|
|
|
-static_library("test_support") {
|
|
+jumbo_static_library("test_support") {
|
|
testonly = true
|
|
|
|
sources = [
|