class DisplayCompositorTest
Defined at line 158 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
Protected Members
uint64_t next_layer_id_
Loop display_coordinator_loop_
unique_ptr mock_display_coordinator_
shared_ptr renderer_
shared_ptr display_compositor_
WireClient sysmem_allocator_
optional dispatcher_setter_
FakeFrameScheduler fake_frame_scheduler_
Public Methods
void SetUp ()
Defined at line 160 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
void TearDown ()
Defined at line 199 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
fidl::ClientEnd<fuchsia_sysmem2::BufferCollectionToken> CreateToken ()
Defined at line 220 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
void SetDisplaySupported (allocation::GlobalBufferCollectionId id, bool is_supported)
Defined at line 234 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
void ForceRendererOnlyMode (bool force_renderer_only)
Defined at line 241 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
void SendOnVsyncEvent (display::WireConfigStamp stamp)
Defined at line 245 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
std::deque<DisplayCompositor::ApplyConfigInfo> GetPendingApplyConfigs ()
Defined at line 249 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
bool BufferCollectionSupportsDisplay (allocation::GlobalBufferCollectionId id)
Defined at line 253 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
bool TryDirectToDisplay (std::span<const RenderData> render_data_list)
Defined at line 259 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
void AddDisplayWithExpectations (display::Display * display, const DisplayInfo & display_info)
`AddDisplay()` with the mock expectations it needs. Layer ids are 1 (the
empty-scene layer) through `kMaxDisplayLayersCount + 1`.
Defined at line 267 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
void ExpectDisplayCleanup ()
Expectations for the `DisplayCompositor` destructor after `AddDisplayWithExpectations()`.
Defined at line 284 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
void ExpectSetDisplayPowerMode (fuchsia_hardware_display_types::PowerMode expected_mode, zx_status_t reply)
One `SetDisplayPowerMode()` call on the mock, replying `reply`. Set this up right
before each `DisplayCompositor::SetDisplayPowerMode()` call.
Defined at line 298 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
Protected Methods
bool RunPromise (fpromise::promise<> promise)
Defined at line 318 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc
void HardwareFrameCorrectnessWithRotationTester (Orientationorientation,ImageFlipimage_flip,fuchsia_math::wire::RectUexpected_dst,display::WireCoordinateTransformationexpected_transform)
The rotation and flip tests below share the following setup:
the layer draws a 128×256 image (full sample region) into a 10×20 destination rect
at the origin; each test below varies only the rotation/flip.
Defined at line 1318 of file ../../src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc