class DisplayInfo

Defined at line 32 of file ../../src/graphics/display/drivers/coordinator/display-info.h

Public Members

Vector preferred_modes
Vector pixel_formats
DoublyLinkedList images
uint32_t layer_count
bool pending_layer_change
IdType pending_layer_change_driver_config_stamp
bool switching_client
queue config_image_queue

Public Methods

zx::result<std::unique_ptr<DisplayInfo>> Create (AddedDisplayInfo added_display_info)

Consumes `added_display_info`.

Defined at line 57 of file ../../src/graphics/display/drivers/coordinator/display-info.cc

void DisplayInfo (display::DisplayId display_id, fbl::Vector<display::PixelFormat> pixel_formats, fbl::Vector<display::ModeAndId> preferred_modes)

Exposed for testing. Prefer obtaining instances from the `Create()` factory method.

Defined at line 31 of file ../../src/graphics/display/drivers/coordinator/display-info.cc

void ~DisplayInfo ()

Defined at line 40 of file ../../src/graphics/display/drivers/coordinator/display-info.cc

void DisplayInfo (const DisplayInfo & )

Defined at line 42 of file ../../src/graphics/display/drivers/coordinator/display-info.h

void InitializeInspect (inspect::Node * parent_node)

Populates an inspect tree for this display.

Defined at line 42 of file ../../src/graphics/display/drivers/coordinator/display-info.cc

void DisplayInfo (DisplayInfo && )

Defined at line 43 of file ../../src/graphics/display/drivers/coordinator/display-info.h

DisplayInfo & operator= (const DisplayInfo & )

Defined at line 44 of file ../../src/graphics/display/drivers/coordinator/display-info.h

DisplayInfo & operator= (DisplayInfo && )

Defined at line 45 of file ../../src/graphics/display/drivers/coordinator/display-info.h

int GetHorizontalSizeMm ()

Guaranteed to be >= 0 and

<

2^16.

Returns zero if the information is not available.

Defined at line 105 of file ../../src/graphics/display/drivers/coordinator/display-info.cc

int GetVerticalSizeMm ()

Guaranteed to be >= 0 and

<

2^16.

Returns zero if the information is not available.

Defined at line 107 of file ../../src/graphics/display/drivers/coordinator/display-info.cc

std::string_view GetManufacturerName ()

Returns an empty view if the information is not available.

The returned string view is guaranteed to be of static storage duration.

Defined at line 109 of file ../../src/graphics/display/drivers/coordinator/display-info.cc

std::string GetMonitorName ()

Returns an empty string if the information is not available.

Defined at line 111 of file ../../src/graphics/display/drivers/coordinator/display-info.cc

std::string GetMonitorSerial ()

Returns an empty string if the information is not available.

Defined at line 113 of file ../../src/graphics/display/drivers/coordinator/display-info.cc

Records