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 86 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

display::DriverConfigStamp LastAppliedConfigStamp ()

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 260 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 299 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 319 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

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

Defined at line 355 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 370 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 642 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

void ReleaseImage (display::DriverImageId image_id)

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

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

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

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

Defined at line 487 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 605 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 637 of file ../../src/graphics/display/lib/fake-display-stack/fake-display.cc

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

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

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

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

zx::result<> SetMinimumRgb (uint8_t minimum_rgb)

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

bool IsCaptureSupported ()

Can be called from any thread.

Defined at line 735 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 `ApplyConfiguration()`. Each VSync event must

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

configuration.

Can be called from any thread.

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