1
Fork 0
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:
Andreas Kling 2019-12-18 20:50:58 +01:00
parent 77ae98a9b6
commit 7cc4b90b16
3 changed files with 21 additions and 1 deletions

View file

@ -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;