class FlatlandPixelTestBase
Defined at line 51 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
Test fixture that sets up an environment with a Scenic we can connect to.
TODO(https://fxbug.dev/447603809): DO NOT COPY THIS TEST.
All HLCCP tests, and should be migrated from ScenicCtfHlcppTest to ScenicCtfHlcppTest.
Protected Members
uint32_t display_width_
uint32_t display_height_
SynchronousInterfacePtr sysmem_allocator_
SynchronousInterfacePtr flatland_allocator_
InterfacePtr root_flatland_
SynchronousInterfacePtr screenshotter_
Public Methods
void SetUp ()
Defined at line 53 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
void TearDown ()
Defined at line 96 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
uint32_t DisplayMaxLayerCount ()
`ScenicCtfHlcppTest`:
Defined at line 104 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
bool DisplayComposition ()
Defined at line 105 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
void DrawRectangle (fuc::FlatlandPtr & flatland, uint32_t width, uint32_t height, int32_t x, int32_t y, utils::Pixel color, fuc::BlendMode blend_mode, float opacity)
Draws a rectangle of size |width|*|height|, color |color|, opacity |opacity| and origin
(|x|,|y|) in |flatland|'s view.
Note: |BlockingPresent| must be called after this function to present the rectangle on the
display.
Defined at line 111 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
fuchsia::sysmem2::BufferCollectionConstraints GetBufferConstraints (fuchsia::images2::PixelFormat pixel_format, fuchsia::images2::ColorSpace color_space)
Defined at line 133 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
void Draw4RectanglesToDisplay ()
Draws the following coordinate test pattern without views:
___________________________________
| | |
| BLACK | RED |
| _____|_____ |
|___________| GREEN |___________|
| |_________| |
| | |
| BLUE | MAGENTA |
|________________|________________|
Defined at line 163 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
Protected Methods
fuchsia::sysmem2::BufferCollectionInfo SetConstraintsAndAllocateBuffer (fuchsia::sysmem2::BufferCollectionTokenSyncPtr token, fuchsia::sysmem2::BufferCollectionConstraints constraints)
Defined at line 188 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
uint64_t get_next_resource_id ()
Defined at line 224 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc