5#ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_TESTS_INTEGRATION_UTILS_SCREENSHOT_H_
6#define FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_TESTS_INTEGRATION_UTILS_SCREENSHOT_H_
9#include <zircon/status.h>
86 std::map<Pixel, uint32_t>
Histogram()
const;
90 std::vector<std::vector<Pixel>>
screenshot()
const {
return screenshot_; }
92 uint64_t
width()
const {
return width_; }
94 uint64_t
height()
const {
return height_; }
100 void ExtractScreenshotFromVMO(uint8_t* screenshot_vmo);
103 std::vector<Pixel> GetPixelsInRow(uint8_t* screenshot_vmo,
size_t row_index);
106 uint64_t height_ = 0;
107 std::vector<std::vector<Pixel>> screenshot_;
static const Pixel kGreen
Screenshot(const zx::vmo &screenshot_vmo, uint64_t width, uint64_t height, int rotation)
Pixel GetPixelAt(uint64_t x, uint64_t y) const
std::map< Pixel, uint32_t > Histogram() const
std::vector< std::vector< Pixel > > screenshot() const
static const Pixel kBlack
static const Pixel kMagenta
std::ostream & operator<<(std::ostream &stream, const Pixel &pixel)
bool operator<(const Pixel &other) const
bool operator==(const Pixel &rhs) const
bool operator!=(const Pixel &rhs) const
Pixel(uint8_t blue, uint8_t green, uint8_t red, uint8_t alpha)