ladybird/Libraries/LibWeb/Loader
Andreas Kling d4ddb0013c LibWeb: Share decoded images at the Resource level :^)
This patch adds ImageResource as a subclass of Resource. This new class
also keeps a Gfx::ImageDecoder so that we can share decoded bitmaps
between all clients of an image resource inside LibWeb.

With this, we now share both encoded and decoded data for images. :^)

I had to change how the purgeable-volatile flag is updated to keep the
volatile-images-outside-the-visible-viewport optimization working.
HTMLImageElement now inherits from ImageResourceClient (a subclass of
ResourceClient with additional image-specific stuff) and informs its
ImageResource about whether it's inside the viewport or outside.

This is pretty awesome! :^)
2020-06-02 20:32:38 +02:00
..
ImageResource.cpp LibWeb: Share decoded images at the Resource level :^) 2020-06-02 20:32:38 +02:00
ImageResource.h LibWeb: Share decoded images at the Resource level :^) 2020-06-02 20:32:38 +02:00
LoadRequest.h LibWeb: Add a naive Resource cache 2020-06-01 21:58:29 +02:00
Resource.cpp LibWeb: Share decoded images at the Resource level :^) 2020-06-02 20:32:38 +02:00
Resource.h LibWeb: Share decoded images at the Resource level :^) 2020-06-02 20:32:38 +02:00
ResourceLoader.cpp LibWeb: Share decoded images at the Resource level :^) 2020-06-02 20:32:38 +02:00
ResourceLoader.h LibWeb: Share decoded images at the Resource level :^) 2020-06-02 20:32:38 +02:00