Add a feature flag for optimizing workers for performance
This fixes a mistake in crrev.com/747632 where the flag was added as
a runtime-enabled feature that is not visible to Finch. The flag now is
moved to blink/public/common/features.h
Bug: 1049132
Change-Id: I2d13e6cb97fd57535861379ae5fc80dba9dc252d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2102547
Reviewed-by: Kentaro Hara <[email protected]>
Commit-Queue: Ulan Degenbaev <[email protected]>
Cr-Commit-Position: refs/heads/master@{#750207}
diff --git a/third_party/blink/common/features.cc b/third_party/blink/common/features.cc
index e135de6..7f9f00d 100644
--- a/third_party/blink/common/features.cc
+++ b/third_party/blink/common/features.cc
@@ -159,6 +159,11 @@
const base::Feature kRTCOfferExtmapAllowMixed{
"RTCOfferExtmapAllowMixed", base::FEATURE_DISABLED_BY_DEFAULT};
+// Prevents workers from sending IsolateInBackgroundNotification to V8
+// and thus instructs V8 to favor performance over memory on workers.
+const base::Feature kV8OptimizeWorkersForPerformance{
+ "V8OptimizeWorkersForPerformance", base::FEATURE_DISABLED_BY_DEFAULT};
+
// Enables negotiation of experimental multiplex codec in SDP.
const base::Feature kWebRtcMultiplexCodec{"WebRTC-MultiplexCodec",
base::FEATURE_DISABLED_BY_DEFAULT};