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

Method Present

cube/fuchsia/flatland_view.cpp:166–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void FlatlandView::Present() {
167 if (present_credits_ == 0) {
168 pending_present_ = true;
169 return;
170 }
171 --present_credits_;
172 fuchsia_ui_composition::PresentArgs present_args = {{
173 .requested_presentation_time = 0,
174 .acquire_fences = {},
175 .release_fences = {},
176 .unsquashable = false,
177 }};
178 fit::result<fidl::OneWayError> present_result = flatland_->Present(std::move(present_args));
179 if (present_result.is_error()) {
180 FX_LOGS(ERROR) << "Failed to call Present(): " << present_result.error_value().FormatDescription();
181 }
182}
183
184void FlatlandView::OnFramePresented(fidl::Event<fuchsia_ui_composition::Flatland::OnFramePresented>& event) {}
185

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected