Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-11-13 | LibGfx: Remove all load_FORMAT_from_memory() decoder wrappers | Andreas Kling | |
There are no more clients of these APIs, now that everyone has been made to use ImageDecoderPlugin objects instead. | |||
2021-11-11 | LibGfx: Include Vector.h in PNGLoader.cpp | Timothy Flynn | |
This was being transitively included from Deflate.h on SerenityOS builds but not on Lagom builds. | |||
2021-11-11 | LibGfx: Remove now-unused load_gif_from_memory() | Andreas Kling | |
2021-11-11 | LibGfx: Use ImageDecoder in Bitmap::try_load_from_fd_and_close() | Andreas Kling | |
Before this patch, both Bitmap and ImageDecoder had logic for guessing which image codec to use for a chunk of data. Bitmap now defers to ImageDecoder so that we only have to do this in one place. There's room for improvement in the ImageDecoder heuristic, but that's outside the scope of this change. | |||
2021-11-11 | LibGfx: Remove load_FORMAT() image codec wrappers | Andreas Kling | |
We had a bunch of old unused wrapper functions for each image codec that would load a supported image with a given path. Nobody actually used them, so let's just get rid of load_png(), load_gif(), etc. | |||
2021-11-11 | Everywhere: Pass AK::ReadonlyBytes by value | Andreas Kling | |
2021-11-11 | Everywhere: Pass AK::StringView by value | Andreas Kling | |
2021-11-10 | AK: Make ByteBuffer::try_* functions return ErrorOr<void> | Andreas Kling | |
Same as Vector, ByteBuffer now also signals allocation failure by returning an ENOMEM Error instead of a bool, allowing us to use the TRY() and MUST() patterns. | |||
2021-11-10 | AK+Everywhere: Stop including Vector.h from StringView.h | Andreas Kling | |
Preparation for using Error.h from Vector.h. This required moving some things out of line. | |||
2021-11-08 | LibCore: Use ErrorOr<T> for Core::File::open() | Andreas Kling | |
2021-11-08 | AK: Use ErrorOr<T> for MappedFile factories | Andreas Kling | |
Replace Result<T, E> with ErrorOr<T> and propagate the error to callers. | |||
2021-11-08 | LibGfx: Use ErrorOr<T> for try_create_from_serialized_byte_buffer() | Andreas Kling | |
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap::try_create() | Andreas Kling | |
Another one that was used in a fajillion places. | |||
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file() | Andreas Kling | |
This was used in a lot of places, so this patch makes liberal use of ErrorOr<T>::release_value_but_fixme_should_propagate_errors(). | |||
2021-11-08 | LibGfx: Convert Gfx::Bitmap to east const style | Andreas Kling | |
2021-11-08 | LibGfx: Deduplicate code in Bitmap::try_load_from_file() | Andreas Kling | |
This can share logic with try_load_from_fd_and_close(), we just need to open the file first. :^) | |||
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap infrastructure used by ShareableBitmap | Andreas Kling | |
This also allows us to get rid of the ShareableBitmap(Bitmap) constructor which was easy to misuse. Everyone now uses Bitmap's to_shareable_bitmap() helper instead. | |||
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap::cropped() | Andreas Kling | |
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap::scaled() | Andreas Kling | |
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap::flipped() | Andreas Kling | |
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap::rotated() | Andreas Kling | |
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap::clone() | Andreas Kling | |
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap::try_create_shareable() | Andreas Kling | |
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap::try_create_wrapper() | Andreas Kling | |
2021-11-08 | LibGfx: Use ErrorOr<T> for Bitmap::try_create_with_anonymous_buffer() | Andreas Kling | |
2021-11-08 | AK: Bring AK::Error into the global namespace | Andreas Kling | |
2021-11-08 | LibGfx: Use ErrorOr<T> for Gfx::Bitmap::allocate_backing_store() | Andreas Kling | |
2021-11-08 | LibCore: Use ErrorOr<T> in Core::AnonymousBuffer | Andreas Kling | |
2021-11-05 | LibGfx: Add FlagRole to GUI::Variant | Sam Atkins | |
2021-11-05 | LibGfx: Use `read_bool_entry()` to read theme flags | Sam Atkins | |
I didn't notice this function existed the first time around. Oops! | |||
2021-10-31 | LibGfx: Add 'IsDark' flag to SystemTheme and Palette | Sam Atkins | |
This explicitly states whether a given theme is a dark theme, so that applications not using the system palette colors can still attempt to match the overall theme. | |||
2021-10-28 | LibGfx: Add to_string() functions for MetricRole and PathRole | Sam Atkins | |
2021-10-28 | LibGfx+WindowServer: Move shadow-painting code to StylePainter | Sam Atkins | |
Specifically, this is to make it accessible to ThemeEditor, but there's nothing about it that is especially window-specific. | |||
2021-10-28 | LibGfx: Make style painters use east const and virtual specifiers | Sam Atkins | |
2021-10-24 | LibGfx: Make Color::from_string() case-insensitive | Sam Atkins | |
This function implements CSS color syntax, which is case-insensitive in HTML contexts. Making it insensitive here means not having to remember to do it in every user, (many of the HTML elements do not do this,) and means they don't have to produce a lowercase copy of the input string before passing it. | |||
2021-10-24 | LibGfx: Make Color use east-const | Sam Atkins | |
2021-10-23 | LibGfx+LibWeb: Move "transparent" keyword into Color::from_string() | Sam Atkins | |
It seemed odd to have this one color handled separately, when `Color::from_string()` implements all other CSS colors. | |||
2021-10-22 | LibGfx: Restrict cleared area to GIF framebuffer | Ben Wiederhake | |
Found by OSS Fuzz, long-standing issue https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34824 The discovered testcase attempts to clear the framebuffer of size 1056x32 from the previous image, which has size 16416x32. | |||
2021-10-10 | LibGfx: Implement copy-assign for Matrix | Ben Wiederhake | |
This used to generate a warning about using a deprecated copy-assign, default-generated by the compiler, and deprecated because we hand- implement the copy-constructor. This warning is correct, since the default-generated copy-assign may or may not be as efficient as memcpy. This patch gets rid of the warning, and has either no performance impact or a slightly positive one. If this turns out to be wrong, we should probably also fix the copy-constructor. | |||
2021-10-08 | Libraries: Fix -Wunreachable-code warnings from clang | Nico Weber | |
2021-10-06 | LibGUI: Add missing headers | Ben Wiederhake | |
2021-10-04 | Everywhere: Fix more Copyright header inconsistencies | Tim Schumacher | |
2021-10-02 | LibGFX: Draw the ends of lines with non-standard thickness | Gal Horowitz | |
Lines are drawn using squares the size of the thickness, so if the length of the line was not a multiple of the thickness, the end of the line was not drawn correctly. | |||
2021-10-01 | Libraries: Fix typos | Nico Weber | |
2021-09-24 | LibGfx: Forward declare Gfx::FontMetrics as a struct | Andreas Kling | |
2021-09-24 | LibGfx: Remove debug spam about not having some font installed | Andreas Kling | |
2021-09-24 | LibGfx: Add a simple Gfx::FontMetrics and Gfx::Font::metrics(code_point) | Andreas Kling | |
This is used to get a handy set of glyph metrics. | |||
2021-09-24 | LibGfx: Make BitmapFont::variant() report a complete typeface | thankyouverycool | |
2021-09-24 | LibGfx: Get weight from tables for TrueTypeFonts | thankyouverycool | |
First, try to find detailed weight metrics in the OS/2 table; barring that, fall back to the font header table. | |||
2021-09-24 | LibGfx: Support italic BitmapFonts | thankyouverycool | |
BitmapFont header now contains a slope byte. Slope is used to indicate slant style and is mapped in LibGfx/FontStyleMapping.h |