| 184 | void FlatlandView::OnFramePresented(fidl::Event<fuchsia_ui_composition::Flatland::OnFramePresented>& event) {} |
| 185 | |
| 186 | void 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 | |
| 194 | FlatlandViewProviderService::FlatlandViewProviderService(CreateView2Callback create_view_callback, async_dispatcher_t* dispatcher) |
| 195 | : create_view_callback_(std::move(create_view_callback)), dispatcher_(dispatcher) { |
nothing calls this directly
no outgoing calls
no test coverage detected