class FlatlandConnection

Defined at line 19 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.h

This class is meant to help clients use the Flatland Present API correctly.

Public Methods

void FlatlandConnection (const FlatlandConnection & )

Defined at line 22 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.h

FlatlandConnection & operator= (const FlatlandConnection & )

Defined at line 23 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.h

void ~FlatlandConnection ()

Defined at line 26 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.cc

std::unique_ptr<FlatlandConnection> Create (sys::ComponentContext * context, const std::string & debug_name)

Creates a flatland connection using the given |context|.

Defined at line 29 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.cc

std::unique_ptr<FlatlandConnection> Create (async::Loop * loop, const std::string & debug_name)

Creates a flatland connection using component::Connect.

Defined at line 28 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present.cc

fuchsia::ui::composition::Flatland * flatland ()

Defined at line 34 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.h

std::unique_ptr<FlatlandConnection> Create (const std::string & debug_name)

Creates a flatland connection using fdio_service_connect.

Defined at line 42 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.cc

std::unique_ptr<FlatlandConnection> Create (async_dispatcher_t * dispatcher, fidl::ClientEnd<fuchsia_ui_composition::Flatland> flatland, const std::string & debug_name)

Creates a flatland connection using the provided client end.

Defined at line 41 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present.cc

std::unique_ptr<FlatlandConnection> Create (zx::channel flatland_endpoint, const std::string & debug_name)

Creates a flatland connection by binding the given channel.

Defined at line 55 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.cc

fidl::Client<fuchsia_ui_composition::Flatland> & FlatlandClient ()

Defined at line 48 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present.cc

void SetErrorCallback (OnErrorCallback callback)

Defined at line 67 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.cc

void on_fidl_error (fidl::UnbindInfo error)

fidl::AsyncEventHandler

Defined at line 87 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present.cc

void OnError (fidl::Event<fuchsia_ui_composition::Flatland::OnError> & error)

fidl::AsyncEventHandler

Defined at line 88 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present.cc

void Present ()

Safe attempt to Present(). It goes through with default present args if present credits are

available.

Defined at line 71 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.cc

void OnNextFrameBegin (fidl::Event<fuchsia_ui_composition::Flatland::OnNextFrameBegin> & e)

fidl::AsyncEventHandler

Defined at line 91 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present.cc

void OnFramePresented (fidl::Event<fuchsia_ui_composition::Flatland::OnFramePresented> & e)

fidl::AsyncEventHandler

Defined at line 104 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present.cc

void Present (fuchsia::ui::composition::PresentArgs present_args, OnFramePresentedCallback callback)

This version of Present can be readily used for steady-state rendering. Inside |callback|

clients may process any input, submit Flatland commands, and finally re-Present(), perpetuating

the loop.

Defined at line 80 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present_hlcpp.cc

void Present (fuchsia_ui_composition::PresentArgs present_args, OnFramePresentedCallback callback)

This version of Present can be readily used for steady-state rendering. Inside |callback|

clients may process any input, submit Flatland commands, and finally re-Present(), perpetuating

the loop.

Defined at line 65 of file ../../src/lib/ui/flatland-frame-scheduling/src/simple_present.cc