class VsyncReceiver

Defined at line 27 of file ../../src/graphics/display/drivers/amlogic-display/vsync-receiver.h

Receives Vertical Sync (Vsync) interrupts triggered by the display engine

indicating that the display engine finishes presenting a frame to the

display device.

Public Members

static const size_t kOnVsyncTargetSize

Public Methods

zx::result<std::unique_ptr<VsyncReceiver>> Create (fidl::UnownedClientEnd<fuchsia_hardware_platform_device::Device> platform_device, VsyncHandler on_vsync)

Factory method intended for production use.

Creates a VsyncReceiver that is receiving Vsync interrupts.

`platform_device` must be valid.

`on_vsync` is called when the display engine finishes presenting a frame

to the display device and triggers a Vsync interrupt. Must be non-null.

Defined at line 28 of file ../../src/graphics/display/drivers/amlogic-display/vsync-receiver.cc

void VsyncReceiver (const VsyncReceiver & )

Defined at line 55 of file ../../src/graphics/display/drivers/amlogic-display/vsync-receiver.h

VsyncReceiver & operator= (const VsyncReceiver & )

Defined at line 56 of file ../../src/graphics/display/drivers/amlogic-display/vsync-receiver.h

void VsyncReceiver (zx::interrupt vsync_irq, VsyncHandler on_vsync, fdf::SynchronizedDispatcher irq_handler_dispatcher)

Production code should prefer the factory method `Create()`.

`irq_handler_dispatcher` must not be empty.

`vsync_irq` must be valid.

`on_vsync` must be non-null.

Defined at line 69 of file ../../src/graphics/display/drivers/amlogic-display/vsync-receiver.cc

void ~VsyncReceiver ()

Defined at line 77 of file ../../src/graphics/display/drivers/amlogic-display/vsync-receiver.cc

zx::result<> SetReceivingState (bool receiving)

If `receiving` is true, starts receiving Vsync interrupts; otherwise, stops

receiving Vsync interrupts.

This method is idempotent.

Defined at line 90 of file ../../src/graphics/display/drivers/amlogic-display/vsync-receiver.cc