53 const std::string& debug_label,
54 fuchsia::ui::composition::FlatlandHandle
flatland,
57 async_dispatcher_t* dispatcher = async_get_default_dispatcher());
69 fuchsia::ui::composition::Flatland*
flatland() {
return flatland_.get(); }
72 return {++next_transform_id_};
76 return {++next_content_id_};
100 void OnError(fuchsia::ui::composition::FlatlandError
error);
102 void OnNextFrameBegin(
103 fuchsia::ui::composition::OnNextFrameBeginValues values);
104 void OnFramePresented(fuchsia::scenic::scheduling::FramePresentedInfo info);
113 async_dispatcher_t* dispatcher_;
115 fuchsia::ui::composition::FlatlandPtr flatland_;
119 uint64_t next_transform_id_ = 0;
120 uint64_t next_content_id_ = 0;
123 bool present_waiting_for_credit_ =
false;
126 uint64_t next_present_trace_id_ = 0;
143 std::vector<zx::event> acquire_fences_;
146 std::shared_ptr<Overflow> acquire_overflow_;
149 std::vector<zx::event> current_present_release_fences_;
150 std::shared_ptr<Overflow> current_release_overflow_;
154 std::vector<zx::event> previous_present_release_fences_;
155 std::shared_ptr<Overflow> previous_release_overflow_;
157 std::string debug_label_;
const uint8_t uint32_t uint32_t GError ** error