class FlatlandPixelTestBase
Defined at line 62 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.
Protected Members
uint32_t display_width_
uint32_t display_height_
WireClient sysmem_allocator_
SyncClient flatland_allocator_
optional root_flatland_
unique_ptr parent_viewport_watcher_
SyncClient screenshotter_
Public Methods
void SetUp ()
Defined at line 64 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
void TearDown ()
Defined at line 114 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
uint32_t GetDisplayMaxLayerCount ()
`ScenicCtfTest`:
Defined at line 121 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
bool UseDisplayComposition ()
Defined at line 122 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
void DrawRectangle (FlatlandClientWithEventHandler &flatland,uint32_twidth,uint32_theight,int32_tx,int32_ty,utils::Pixelcolor,fuc::BlendModeblend_mode,floatopacity)
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 128 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 163 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 195 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
Protected Methods
std::optional<fuchsia_sysmem2::BufferCollectionInfo> SetConstraintsAndAllocateBuffer (fidl::ClientEnd<fuchsia_sysmem2::BufferCollectionToken> token, fuchsia_sysmem2::BufferCollectionConstraints constraints)
Defined at line 220 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc
uint64_t get_next_resource_id ()
Defined at line 263 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_pixeltest.cc