LibGfx: Add a test for bitmap export

The verified pixel output in this test just reflects currently observed
behavior, I have not verified that all cases output the correct data wrt
what the spec expects.
This commit is contained in:
InvalidUsernameException 2025-11-23 13:07:43 +01:00 committed by Jelle Raaijmakers
parent a81e407c44
commit 1f8a42c367
Notes: github-actions[bot] 2025-11-28 17:34:12 +00:00
6 changed files with 294 additions and 16 deletions

View file

@ -16,6 +16,18 @@
namespace Gfx {
StringView export_format_name(ExportFormat format)
{
switch (format) {
#define ENUMERATE_EXPORT_FORMAT(format) \
case Gfx::ExportFormat::format: \
return #format##sv;
ENUMERATE_EXPORT_FORMATS(ENUMERATE_EXPORT_FORMAT)
#undef ENUMERATE_EXPORT_FORMAT
}
VERIFY_NOT_REACHED();
}
struct ImmutableBitmapImpl {
sk_sp<SkImage> sk_image;
SkBitmap sk_bitmap;