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

Method OnNextFrameBegin

cube/fuchsia/flatland_view.cpp:186–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184void FlatlandView::OnFramePresented(fidl::Event<fuchsia_ui_composition::Flatland::OnFramePresented>& event) {}
185
186void FlatlandView::OnNextFrameBegin(fidl::Event<fuchsia_ui_composition::Flatland::OnNextFrameBegin>& event) {
187 present_credits_ += event.values().additional_present_credits().value_or(0);
188 if (present_credits_ > 0 && pending_present_) {
189 Present();
190 pending_present_ = false;
191 }
192}
193
194FlatlandViewProviderService::FlatlandViewProviderService(CreateView2Callback create_view_callback, async_dispatcher_t* dispatcher)
195 : create_view_callback_(std::move(create_view_callback)), dispatcher_(dispatcher) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected