5#ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_SCREENSHOT_H_
6#define FLUTTER_IMPELLER_GOLDEN_TESTS_SCREENSHOT_H_
34 virtual bool WriteToPNG(
const std::string& path)
const = 0;
virtual const uint8_t * GetBytes() const =0
Access raw data of the screenshot.
virtual size_t GetHeight() const =0
Returns the height of the image in pixels.
virtual size_t GetWidth() const =0
Returns the width of the image in pixels.
virtual bool WriteToPNG(const std::string &path) const =0
virtual ~Screenshot()=default
virtual size_t GetBytesPerRow() const =0
Returns number of bytes required to represent one row of the raw image.