renderer/loader: code refactoring

Move the raw image loading interface to the RawImageLoader.
it is only valid for this component.
This commit is contained in:
Hermet Park 2023-11-08 11:14:15 +09:00 committed by Hermet Park
parent 2082343463
commit 84f683d087
2 changed files with 1 additions and 2 deletions

View file

@ -33,7 +33,7 @@ public:
~RawLoader();
using LoadModule::open;
bool open(const uint32_t* data, uint32_t w, uint32_t h, bool premultiplied, bool copy) override;
bool open(const uint32_t* data, uint32_t w, uint32_t h, bool premultiplied, bool copy);
bool read() override;
bool close() override;

View file

@ -38,7 +38,6 @@ public:
virtual bool open(const string& path) { return false; }
virtual bool open(const char* data, uint32_t size, bool copy) { return false; }
virtual bool open(const uint32_t* data, uint32_t w, uint32_t h, bool premultiplied, bool copy) { return false; }
//Override this if the vector-format has own resizing policy.
virtual bool resize(Paint* paint, float w, float h) { return false; }