[fuchsia] route fuchsia.sysmem2.Allocator pt 2 (flutter/engine#52509)

Fuchsia's fake-display will be migrating to sysmem2, which requires
fuchsia.sysmem2.Allocator to be routed.

fixes https://github.com/flutter/flutter/issues/146858
This commit is contained in:
Dustin Green
2024-05-02 18:43:30 -07:00
committed by GitHub
parent 1b28d5a898
commit 561a3c968b

View File

@@ -237,6 +237,11 @@ void FlutterEmbedderTest::SetUpRealmBase() {
Protocol{fuchsia::logger::LogSink::Name_},
Protocol{fuchsia::inspect::InspectSink::Name_},
Protocol{fuchsia::sysmem::Allocator::Name_},
// Replace "fuchsia.sysmem2.Allocator" with
// fuchsia::sysmem2::Allocator::Name_
// when available (fuchsia SDK >= 19).
Protocol{"fuchsia.sysmem2.Allocator"},
Protocol{fuchsia::tracing::provider::Registry::Name_},
Protocol{kVulkanLoaderServiceName},
},
@@ -249,6 +254,11 @@ void FlutterEmbedderTest::SetUpRealmBase() {
.capabilities = {Protocol{fuchsia::logger::LogSink::Name_},
Protocol{fuchsia::inspect::InspectSink::Name_},
Protocol{fuchsia::sysmem::Allocator::Name_},
// Replace "fuchsia.sysmem2.Allocator" with
// fuchsia::sysmem2::Allocator::Name_
// when available (fuchsia SDK >= 19).
Protocol{"fuchsia.sysmem2.Allocator"},
Protocol{fuchsia::tracing::provider::Registry::Name_},
Protocol{kVulkanLoaderServiceName}},
.source = ParentRef{},