Commit 49062aec authored by Wez's avatar Wez Committed by Commit Bot

[fuchsia] Reduce the features enabled for isolated Contexts.

Isolated contexts are designed for "web UI" content, which should only
require basic audio and rendering features.

Bug: b/143575823
Change-Id: I83c3cea67de8c61b2a85f0f05729c1674c38ae76
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1893525Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
Reviewed-by: default avatarEmircan Uysaler <emircan@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Auto-Submit: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711520}
parent 81f60c39
...@@ -33,9 +33,13 @@ bool AreCastComponentParamsValid( ...@@ -33,9 +33,13 @@ bool AreCastComponentParamsValid(
fuchsia::web::CreateContextParams BuildCreateContextParamsForIsolatedRunners( fuchsia::web::CreateContextParams BuildCreateContextParamsForIsolatedRunners(
const fuchsia::web::CreateContextParams& create_context_params) { const fuchsia::web::CreateContextParams& create_context_params) {
fuchsia::web::CreateContextParams output; fuchsia::web::CreateContextParams output;
if (create_context_params.has_features()) {
output.set_features(create_context_params.features()); // Isolated contexts receive only a limited set of features.
} output.set_features(
fuchsia::web::ContextFeatureFlags::AUDIO |
fuchsia::web::ContextFeatureFlags::VULKAN |
fuchsia::web::ContextFeatureFlags::HARDWARE_VIDEO_DECODER);
if (create_context_params.has_user_agent_product()) { if (create_context_params.has_user_agent_product()) {
output.set_user_agent_product(create_context_params.user_agent_product()); output.set_user_agent_product(create_context_params.user_agent_product());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment