mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
LibDraw: Create purgeable GraphicsBitmap in the PNG decoder
Also add ImageDecoder APIs for controlling the volatile flag.
This commit is contained in:
parent
77ae98a9b6
commit
7cc4b90b16
3 changed files with 21 additions and 1 deletions
|
@ -15,6 +15,8 @@ public:
|
|||
|
||||
virtual Size size() override;
|
||||
virtual RefPtr<GraphicsBitmap> bitmap() override;
|
||||
virtual void set_volatile() override;
|
||||
[[nodiscard]] virtual bool set_nonvolatile() override;
|
||||
|
||||
private:
|
||||
OwnPtr<PNGLoadingContext> m_context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue