| 164 | } |
| 165 | |
| 166 | void 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 | |
| 184 | void FlatlandView::OnFramePresented(fidl::Event<fuchsia_ui_composition::Flatland::OnFramePresented>& event) {} |
| 185 |
nothing calls this directly
no outgoing calls
no test coverage detected