MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / Create

Method Create

cube/fuchsia/flatland_view.cpp:39–47  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

37
38// static
39std::unique_ptr<FlatlandView> FlatlandView::Create(fidl::UnownedClientEnd<fuchsia_io::Directory> service_directory,
40 fuchsia_ui_views::ViewCreationToken view_creation_token,
41 ResizeCallback resize_callback, async_dispatcher_t* dispatcher) {
42 ZX_DEBUG_ASSERT(dispatcher != nullptr);
43 auto view = std::make_unique<FlatlandView>(std::move(resize_callback), dispatcher);
44 if (!view) return nullptr;
45 if (!view->Init(service_directory, std::move(view_creation_token))) return nullptr;
46 return view;
47}
48
49FlatlandView::FlatlandView(ResizeCallback resize_callback, async_dispatcher_t* dispatcher)
50 : resize_callback_(std::move(resize_callback)), dispatcher_(dispatcher) {

Callers

nothing calls this directly

Calls 1

InitMethod · 0.80

Tested by

no test coverage detected