class FakeDisplay

Defined at line 49 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.h

Fake implementation of the Display Engine protocol.

This class has a complex threading model. See method-level comments for the

thread safety properties of each method.

Public Methods

void FakeDisplay (const FakeDisplay & )

Defined at line 56 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.h

FakeDisplay & operator= (const FakeDisplay & )

Defined at line 57 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.h

void FakeDisplay (display::DisplayEngineEventsInterface * engine_events, fidl::ClientEnd<fuchsia_sysmem2::Allocator> sysmem_client, const FakeDisplayDeviceConfig & device_config, inspect::Inspector inspector)

`engine_events` must outlive the newly constructed instance.

Defined at line 85 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

display::DriverConfigStamp LastSubmittedConfigStamp ()

Can be called from any thread.

Defined at line 114 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.h

uint8_t GetClampRgbValue ()

Can be called from any thread.

Defined at line 120 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.h

zx::vmo DuplicateInspectorVmoForTesting ()

Can be called from any thread.

Defined at line 126 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.h

void ~FakeDisplay ()

Defined at line 259 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

display::EngineInfo CompleteCoordinatorConnection ()

display::DisplayEngineInterface:

When the driver is migrated to FIDL, these methods will only be called on

the Display Engine API serving dispatcher.

Defined at line 298 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

zx::result<> ImportBufferCollection (display::DriverBufferCollectionId buffer_collection_id, fidl::ClientEnd<fuchsia_sysmem2::BufferCollectionToken> buffer_collection_token)

Defined at line 317 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

zx::result<> ReleaseBufferCollection (display::DriverBufferCollectionId buffer_collection_id)

Defined at line 353 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

zx::result<display::DriverImageId> ImportImage (const display::ImageMetadata & image_metadata, display::DriverBufferCollectionId buffer_collection_id, uint32_t buffer_index)

Defined at line 368 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

zx::result<display::DriverCaptureImageId> ImportImageForCapture (display::DriverBufferCollectionId buffer_collection_id, uint32_t buffer_index)

Defined at line 641 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

void ReleaseImage (display::DriverImageId image_id)

Defined at line 408 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

display::ConfigCheckResult CheckConfiguration (display::DisplayId display_id, display::ModeId display_mode_id, std::span<const display::DriverLayer> layers)

Defined at line 427 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

void SubmitConfiguration (display::DisplayId display_id, display::ModeId display_mode_id, std::span<const display::DriverLayer> layers, display::DriverConfigStamp config_stamp)

Defined at line 485 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

zx::result<> SetBufferCollectionConstraints (const display::ImageBufferUsage & image_buffer_usage, display::DriverBufferCollectionId buffer_collection_id)

Defined at line 604 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

zx::result<> SetDisplayPowerMode (display::DisplayId display_id, display::PowerMode power_mode)

Defined at line 636 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

zx::result<> StartCapture (display::DriverCaptureImageId capture_image_id)

Defined at line 687 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

zx::result<> ReleaseCapture (display::DriverCaptureImageId capture_image_id)

Defined at line 710 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

zx::result<> SetMinimumRgb (uint8_t minimum_rgb)

Defined at line 271 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

bool IsCaptureSupported ()

Can be called from any thread.

Defined at line 734 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

void TriggerVsync ()

Manually triggers the VSync dispatch logic.

Must only be called when periodic VSync is disabled. This restriction

serves to ensure good test design, and it is not based on implementation

limitations.

May not be called before `SubmitConfiguration()`. Each VSync event must

include a valid `ConfigStamp`, which requires having an applied

configuration.

Can be called from any thread.

Defined at line 915 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc