54 const std::string& debug_label,
55 fuchsia::ui::composition::FlatlandHandle
flatland,
58 async_dispatcher_t* dispatcher = async_get_default_dispatcher());
70 fuchsia::ui::composition::Flatland*
flatland() {
return flatland_.get(); }
73 return {++next_transform_id_};
77 return {++next_content_id_};
101 void OnError(fuchsia::ui::composition::FlatlandError
error);
103 void OnNextFrameBegin(
104 fuchsia::ui::composition::OnNextFrameBeginValues values);
105 void OnFramePresented(fuchsia::scenic::scheduling::FramePresentedInfo info);
114 async_dispatcher_t* dispatcher_;
116 fuchsia::ui::composition::FlatlandPtr flatland_;
120 uint64_t next_transform_id_ = 0;
121 uint64_t next_content_id_ = 0;
124 bool present_waiting_for_credit_ =
false;
127 uint64_t next_present_trace_id_ = 0;
144 std::vector<zx::event> acquire_fences_;
147 std::shared_ptr<Overflow> acquire_overflow_;
150 std::vector<zx::event> current_present_release_fences_;
151 std::shared_ptr<Overflow> current_release_overflow_;
155 std::vector<zx::event> previous_present_release_fences_;
156 std::shared_ptr<Overflow> previous_release_overflow_;
158 std::string debug_label_;
const uint8_t uint32_t uint32_t GError ** error