Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also adds a couple tests.
|
|
This is copied over from ladybird, but putting it here makes this
more reusable.
|
|
|
|
|
|
|
|
And while here make a partial fix for launching terminal apps that
require root and contain spaces in their name/path.
|
|
|
|
|
|
|
|
This now allows spawning a process without disowning.
|
|
|
|
Previously the spawn_actions were not destroyed, which leaked a
little memory.
|
|
...simply by using LittleEndianInputBitStream::read_bit() instead of
read_bits(1). This puts us on the fast path for single-bit reads.
There's still lots of money on the table for bigger optimizations to
claim here, just picking an embarrassingly low-hanging fruit. :^)
|
|
Instead of going byte by byte, copy entire blocks at once and only check
if we need to update the state once per block. This pretty much
eliminates `::update()` from profiles and measurably improves
performance for utilities like `sha256sum`.
|
|
|
|
|
|
|
|
These are similar to the checkboxes now (though no SDFs here all just
plain AA painter).
|
|
This will allow these to be more easily reused for other inputs.
Note that we need this as the base LibGfx pallet does not quite have
the required range for HTML inputs (though these shades are based off
the LibGfx palette).
|
|
Small change to treat pixels outside the signed distance field bitmap
as outside the shape.
|
|
|
|
|
|
|
|
|
|
|
|
Each one of `[PBM, PGM, PPM]Loader` used yet another stream-like relic.
This patch ports all of them to `AK::Stream`.
|
|
The `read_image_data` function of each one of[PBM, PGM, PPM]Loader use
the same structure to read an image. This patch harmonizes the three
functions and use finite loops instead of reading until EOF. It allows
to quit early on bloated file, but it's mainly done for refactoring
purpose.
|
|
Reading the two magic bytes are always done in `decode()` by calling
`read_magic_number()`. So no need to read it twice.
|
|
|
|
These functions are:
- read_width
- read_height
- read_max_val
|
|
|
|
|