class ReadbackTest
Defined at line 24 of file ../../src/ui/lib/escher/test/common/readback_test.h
Test fixture for Escher tests that need to read back pixels from the
framebuffer.
Protected Members
static const uint32_t kFramebufferWidth
static const uint32_t kFramebufferHeight
static const uint32_t kNumFramebufferPixels
static const uint32_t kFramebufferBytesPerPixel
static const uint32_t kNumFramebufferBytes
static Format kColorFormat
static Format kDepthFormat
static ColorSpace kColorSpace
Protected Methods
const EscherWeakPtr & escher ()
Defined at line 54 of file ../../src/ui/lib/escher/test/common/readback_test.h
FrameData NewFrame (vk::ImageLayout framebuffer_layout)
Defined at line 59 of file ../../src/ui/lib/escher/test/common/readback_test.cc
std::vector<uint8_t> ReadbackFromColorAttachment (const FramePtr & frame, vk::ImageLayout current_image_layout, vk::ImageLayout final_image_layout)
Submits the frame's commands via SubmitPartialFrame(), after first adding
commands to readback the output image. Waits until the Vulkan device is
idle, then memcpys the image bytes into the returned result.
Defined at line 94 of file ../../src/ui/lib/escher/test/common/readback_test.cc
void SetUp ()
|::testing::Test|
Defined at line 15 of file ../../src/ui/lib/escher/test/common/readback_test.cc
void TearDown ()
|::testing::Test|
Defined at line 51 of file ../../src/ui/lib/escher/test/common/readback_test.cc